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