Home | History | Annotate | Line # | Download | only in man
Makefile revision 1.5
      1  1.5  christos #	$NetBSD: Makefile,v 1.5 2018/05/23 01:58:40 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.1  christos 	for i in ${OPENSSLSRC}/doc/apps/*.pod; do \
     14  1.1  christos 		fn=`basename $$i .pod`; \
     15  1.1  christos 		if [ "$$fn" = "config" ]; then \
     16  1.1  christos 			sec=5; \
     17  1.1  christos 			dst=openssl.cnf.$$sec; \
     18  1.1  christos 		elif [ "$$fn" = "openssl" ]; then \
     19  1.1  christos 			sec=1; \
     20  1.1  christos 			dst=`basename $$i .pod`.$$sec; \
     21  1.1  christos 		else \
     22  1.1  christos 			sec=1; \
     23  1.1  christos 			dst=openssl_`basename $$i .pod`.$$sec; \
     24  1.1  christos 		fi; \
     25  1.1  christos 		(cd `dirname $$i`; \
     26  1.1  christos 		 pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
     27  1.1  christos 			`basename $$i`) | \
     28  1.3     joerg 		sed -e 's/[[:space:]]*$$//' | \
     29  1.1  christos 		perl libcrypto.pl >$$dst; \
     30  1.1  christos 	done
     31  1.1  christos 	for i in ${OPENSSLSRC}/doc/crypto/*.pod \
     32  1.1  christos 	    ${OPENSSLSRC}/doc/ssl/*.pod; do \
     33  1.1  christos 		fn=`basename $$i .pod`; \
     34  1.1  christos 		if [ "$$fn" = "des_modes" ]; then \
     35  1.1  christos 			sec=7; \
     36  1.1  christos 			(cd `dirname $$i`; \
     37  1.1  christos 			 pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
     38  1.3     joerg 				`basename $$i`) | \
     39  1.3     joerg 			sed -e '/$$RCSfile/d' -e '/$$Log/d' -e 's/[[:space:]]*$$//' \
     40  1.3     joerg 			> `basename $$i .pod`.$$sec; \
     41  1.1  christos 		else \
     42  1.1  christos 			sec=3; \
     43  1.1  christos 			(cd `dirname $$i`; \
     44  1.1  christos 			 pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
     45  1.1  christos 				`basename $$i`) | \
     46  1.3     joerg 			sed -e 's/[[:space:]]*$$//' | \
     47  1.1  christos 			perl libcrypto.pl >`basename $$i .pod`.$$sec; \
     48  1.1  christos 		fi \
     49  1.1  christos 	done
     50  1.5  christos 	for i in bio evp x509 MD5 HMAC; do \
     51  1.1  christos 		mv $$i.3 openssl_$$i.3; \
     52  1.1  christos 	done
     53  1.1  christos 
     54  1.5  christos 
     55  1.1  christos clean:
     56  1.1  christos 	-/bin/rm -f *.[0-9]
     57  1.1  christos 
     58