Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk handle NOMANDOC in the html case too
details: https://anonhg.NetBSD.org/src/rev/55b67c480a26
branches: trunk
changeset: 785570:55b67c480a26
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 21 01:48:14 2013 +0000
description:
handle NOMANDOC in the html case too
diffstat:
share/mk/bsd.man.mk | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r e379d8d5de61 -r 55b67c480a26 share/mk/bsd.man.mk
--- a/share/mk/bsd.man.mk Thu Mar 21 01:39:04 2013 +0000
+++ b/share/mk/bsd.man.mk Thu Mar 21 01:48:14 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.man.mk,v 1.110 2012/11/30 17:52:13 joerg Exp $
+# $NetBSD: bsd.man.mk,v 1.111 2013/03/21 01:48:14 christos Exp $
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
.include <bsd.init.mk>
@@ -202,9 +202,22 @@
${_MNUMBERS:@N@.$N.html$N@}: # build rule
${_MKTARGET_FORMAT}
- ${TOOL_MANDOC_HTML} -Oman=${HTMLLINKS} -Ostyle=${HTMLSTYLE} \
- ${.IMPSRC} > ${.TARGET}.tmp && \
- mv ${.TARGET}.tmp ${.TARGET}
+.if ${MKMANDOC} == yes && !defined(NOMANDOC)
+ if test ""${NOMANDOC.${.IMPSRC:T}:tl:Q} != "yes"; then \
+ ${TOOL_MANDOC_HTML} -Oman=${HTMLLINKS} -Ostyle=${HTMLSTYLE} \
+ ${.IMPSRC} > ${.TARGET}.tmp && \
+ mv ${.TARGET}.tmp ${.TARGET}; \
+ else \
+ ${TOOL_ROFF_HTML} -mandoc ${.IMPSRC} ${MANCOMPRESS} \
+ > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}; \
+ fi
+.elif defined(USETBL)
+ ${TOOL_TBL} ${.IMPSRC} | ${TOOL_ROFF_HTML} -mandoc ${MANCOMPRESS} \
+ > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
+.else
+ ${TOOL_ROFF_HTML} -mandoc ${.IMPSRC} ${MANCOMPRESS} \
+ > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
+.endif
.for F in ${HTMLPAGES:O:u}
# construct installed path
Home |
Main Index |
Thread Index |
Old Index