build - Support INSTALLFLAGS for manual pages
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 9 Aug 2013 20:03:50 +0000 (13:03 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 9 Aug 2013 20:03:50 +0000 (13:03 -0700)
* Support INSTALLFLAGS for manual pages, allows leaf to efficiently
  keep unchanged manual pages intact when regenerating.

share/mk/bsd.doc.mk
share/mk/bsd.man.mk

index 29298fa..15c0624 100644 (file)
@@ -81,6 +81,8 @@ UNROFFFLAGS+= split=1
 # Berkeley me macros.
 COMPAT?=       -C
 
+_MANINSTALLFLAGS:= ${INSTALLFLAGS}
+
 .PATH: ${.CURDIR} ${SRCDIR}
 
 all:   ${DFILE}
@@ -105,10 +107,10 @@ realinstall:
 .if ${PRINTERDEVICE} == "html"
        cd ${SRCDIR}; \
                ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
-               ${DOC}*.html ${DESTDIR}${BINDIR}/${VOLUME}
+               ${_MANINSTALLFLAGS} ${DOC}*.html ${DESTDIR}${BINDIR}/${VOLUME}
 .else
        ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
-               ${DFILE} ${DESTDIR}${BINDIR}/${VOLUME}
+               ${_MANINSTALLFLAGS} ${DFILE} ${DESTDIR}${BINDIR}/${VOLUME}
 .endif
 
 spell: ${SRCS}
index 535a486..50e35b9 100644 (file)
 .error bsd.man.mk cannot be included directly.
 .endif
 
-MINSTALL?=     ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
+_MANINSTALLFLAGS:= ${INSTALLFLAGS}
+
+MINSTALL?=     ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
+               ${_MANINSTALLFLAGS}
 
 CATDIR=                ${MANDIR:H:S/$/\/cat/}
 CATEXT=                .cat