OpenSSL: Set the date for manual pages to the release date.
[dragonfly.git] / secure / lib / libcrypto / Makefile.inc
CommitLineData
984263bc 1# $FreeBSD: src/secure/lib/libcrypto/Makefile.inc,v 1.7.2.11 2003/02/20 15:07:32 nectar Exp $
18ed9402 2# $DragonFly: src/secure/lib/libcrypto/Makefile.inc,v 1.18 2008/09/27 21:04:45 pavalos Exp $
984263bc 3
fc468453 4OSSLVERSION= 0.9.8m
db232015 5OSSLDATE= 2010-02-25
a7e8bf1a 6LCRYPTO_SRC= ${.CURDIR}/../../../crypto/openssl
a561f9ff 7LCRYPTO_DOC= ${LCRYPTO_SRC}/doc
984263bc 8
48da5a06 9CFLAGS+= -DTERMIOS -DANSI_SOURCE -DL_ENDIAN
984263bc
MD
10CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto \
11 -I${LCRYPTO_SRC}/crypto/engine -I${.OBJDIR}
12
984263bc
MD
13MANDIR= ${SHAREDIR}/openssl/man/man
14
15.if defined(LIB)
16_docs= ${LIB}
984263bc
MD
17_sec= 3
18.else
19_docs= apps
984263bc
MD
20_sec= 1
21.endif
22
23man-update:
24.for manpage in ${MAN}
25 @(sec=${manpage:E}; \
26 pod=${manpage:R}.pod; \
27 cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \
db232015
PA
28 pod2man --section=$$sec --release="${OSSLVERSION}" \
29 --date="${OSSLDATE}" --center="OpenSSL" \
984263bc
MD
30 $$pod > ${.CURDIR}/man/${manpage}; \
31 rm $$pod; \
32 ${ECHO} ${manpage})
33.endfor
34
35man-makefile-update:
36 rm -f ${.CURDIR}/Makefile.man
984263bc
MD
37 echo '# DO NOT EDIT: generated from man-makefile-update target' >> \
38 ${.CURDIR}/Makefile.man
39 for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \
40 fn=`basename $$i .pod`; \
a561f9ff
SS
41 sec=`perl ${LCRYPTO_SRC}/util/extract-section.pl < $$i`; \
42 sec=$${sec:-${_sec}}; \
43 ${ECHO} "MAN+= $$fn.$$sec" >> ${.CURDIR}/Makefile.man; \
984263bc 44 perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \
a561f9ff
SS
45 sed -Ee "/^$$fn\$$/d;s/^(.*)/MLINKS+= $$fn.$$sec \1.$$sec/" >> \
46 ${.CURDIR}/Makefile.man; \
984263bc 47 done