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