1 1.6 christos # $NetBSD: Makefile,v 1.6 2018/09/23 13:33:06 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 .include <bsd.own.mk> 7 1.1 christos CRYPTODIST= ${NETBSDSRCDIR}/crypto 8 1.1 christos .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 9 1.1 christos 10 1.2 joerg VERSION!= head -2 ${OPENSSLSRC}/README | tail -1 | awk '{ print $$2; }' 11 1.1 christos 12 1.3 joerg make-manpages: 13 1.6 christos for sec in 1 3 5 7; do \ 14 1.6 christos for i in ${OPENSSLSRC}/doc/man$$sec/*.pod; do \ 15 1.1 christos fn=`basename $$i .pod`; \ 16 1.1 christos if [ "$$fn" = "config" ]; then \ 17 1.6 christos fn=openssl_config; \ 18 1.1 christos fi; \ 19 1.6 christos case $$sec in \ 20 1.6 christos 1) if [ "$$fn" = "openssl" ]; then \ 21 1.6 christos dst=$$fn.$$sec; \ 22 1.6 christos else \ 23 1.6 christos dst=openssl_$$fn.$$sec; \ 24 1.6 christos fi;; \ 25 1.6 christos *) dst=$$fn.$$sec;; \ 26 1.6 christos esac; \ 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.3 joerg sed -e 's/[[:space:]]*$$//' | \ 31 1.6 christos perl libcrypto.pl > $$dst; \ 32 1.6 christos done \ 33 1.1 christos done 34 1.6 christos foo: 35 1.5 christos 36 1.1 christos clean: 37 1.1 christos -/bin/rm -f *.[0-9] 38 1.1 christos 39