1# $NetBSD: Makefile,v 1.10 2023/05/31 19:42:43 christos Exp $ 2 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. 5 6.include <bsd.own.mk> 7CRYPTODIST= ${NETBSDSRCDIR}/crypto 8.include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 9 10VERSION!= awk '/\#\#\#/ { print $$6; exit 0; };' ${OPENSSLSRC}/CHANGES.md 11 12 13make-manpages: 14 for sec in 1 3 5 7; do \ 15 for i in ${OPENSSLSRC}/doc/man$$sec/*.pod; do \ 16 fn=`basename $$i .pod`; \ 17 if [ "$$fn" = "config" ]; then \ 18 fn=openssl_config; \ 19 fi; \ 20 case $$sec in \ 21 1) if [ "$$fn" = "openssl" ]; then \ 22 dst=$$fn.$$sec; \ 23 else \ 24 case $$fn in \ 25 openssl*) dst=$$fn.$$sec;; \ 26 *) dst=openssl_$$fn.$$sec;; \ 27 esac; \ 28 fi;; \ 29 *) dst=$$fn.$$sec;; \ 30 esac; \ 31 (cd `dirname $$i`; \ 32 pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \ 33 `basename $$i`) | \ 34 sed -e 's/[[:space:]]*$$//' | \ 35 perl libcrypto.pl > $$dst; \ 36 done \ 37 done 38 39clean: 40 -/bin/rm -f *.[0-9] 41