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