Sync usage with man page.
[netbsd-mini2440.git] / crypto / external / bsd / openssl / lib / libcrypto / man / Makefile
blob11becf98bb21c63b293be25c402cf6c8c484d0c7
1 # $NetBSD: Makefile,v 1.14 2005/11/25 21:09:34 christos Exp $
3 # the makefile is not, and should not be visited during normal build process.
4 # try to use latest pod2man, which comes with the latest perl.
6 # XXX: remove .UC lines
8 .include <bsd.own.mk>
9 CRYPTODIST= ${NETBSDSRCDIR}/crypto
10 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
12 VERSION!= grep VERSION ${OPENSSLSRC}/Makefile | head -1 | sed -e 's/VERSION=//'
14 manpages:
15 for i in ${OPENSSLSRC}/doc/apps/*.pod; do \
16 fn=`basename $$i .pod`; \
17 if [ "$$fn" = "config" ]; then \
18 sec=5; \
19 dst=openssl.cnf.$$sec; \
20 elif [ "$$fn" = "openssl" ]; then \
21 sec=1; \
22 dst=`basename $$i .pod`.$$sec; \
23 else \
24 sec=1; \
25 dst=openssl_`basename $$i .pod`.$$sec; \
26 fi; \
27 (cd `dirname $$i`; \
28 pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
29 `basename $$i`) | \
30 perl libcrypto.pl >$$dst; \
31 done
32 for i in ${OPENSSLSRC}/doc/crypto/*.pod \
33 ${OPENSSLSRC}/doc/ssl/*.pod; do \
34 fn=`basename $$i .pod`; \
35 if [ "$$fn" = "des_modes" ]; then \
36 sec=7; \
37 (cd `dirname $$i`; \
38 pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
39 `basename $$i`) | sed -e '/$$RCSfile/d' -e '/$$Log/d' > `basename $$i .pod`.$$sec; \
40 else \
41 sec=3; \
42 (cd `dirname $$i`; \
43 pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
44 `basename $$i`) | \
45 perl libcrypto.pl >`basename $$i .pod`.$$sec; \
46 fi \
47 done
48 for i in bio blowfish bn bn_internal buffer des dh ecdsa \
49 dsa engine err \
50 evp hmac lhash md5 mdc2 pem rand rc4 ripemd rsa \
51 sha threads ui ui_compat x509; do \
52 mv $$i.3 openssl_$$i.3; \
53 done
55 clean:
56 -/bin/rm -f *.[0-9]