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