# $NetBSD: Makefile,v 1.6 2018/09/23 13:33:06 christos Exp $ # the makefile is not, and should not be visited during normal build process. # try to use latest pod2man, which comes with the latest perl. .include <bsd.own.mk> CRYPTODIST= ${NETBSDSRCDIR}/crypto .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" VERSION!= head -2 ${OPENSSLSRC}/README | tail -1 | awk '{ print $$2; }' make-manpages: for sec in 1 3 5 7; do \ for i in ${OPENSSLSRC}/doc/man$$sec/*.pod; do \ fn=`basename $$i .pod`; \ if [ "$$fn" = "config" ]; then \ fn=openssl_config; \ fi; \ case $$sec in \ 1) if [ "$$fn" = "openssl" ]; then \ dst=$$fn.$$sec; \ else \ dst=openssl_$$fn.$$sec; \ fi;; \ *) dst=$$fn.$$sec;; \ esac; \ (cd `dirname $$i`; \ pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \ `basename $$i`) | \ sed -e 's/[[:space:]]*$$//' | \ perl libcrypto.pl > $$dst; \ done \ done foo: clean: -/bin/rm -f *.[0-9] |