summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.kmod.mk
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>1999-07-31 20:27:33 +0000
committerhoek <hoek@FreeBSD.org>1999-07-31 20:27:33 +0000
commitea145ecb4c0bfe14ba796ccb8b2c30cb923dd32e (patch)
treed800b3712f711dc08884e4c0c6473043aca28ff6 /share/mk/bsd.kmod.mk
parent50a739edfc9aba4fd1610718e2e43397b475492b (diff)
downloadFreeBSD-src-ea145ecb4c0bfe14ba796ccb8b2c30cb923dd32e.zip
FreeBSD-src-ea145ecb4c0bfe14ba796ccb8b2c30cb923dd32e.tar.gz
Add variable INSTALLFLAGS_EDIT used to remove arbitrary INSTALLFLAGS.
Specifically intended for removing -fschg ("INSTALLFLAGS_EDIT=:S/schg/uchg/") this makes the NOFSCHG flag redundant. NOFSCHG will still be honoured by bsd.lib.mk but is valid for buildworld only. NOFSCHG is still implemented in the old way (ie. _not_ ".if NOFSCHG then { INSTALLFLAGS_EDIT+=:S/schg/,/ }" to emphasize the fact that NOFSCHG is only supported in a limited fashion and for buildworld. The interface and implementation are such that future use of flags such as sappnd can also be easily removed or altered (perhaps to uappnd). This commit brought to you by the letters B, D, and E, and the numbers six, one, thirteen, and three.
Diffstat (limited to 'share/mk/bsd.kmod.mk')
-rw-r--r--share/mk/bsd.kmod.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index 024f28e..be04cca 100644
--- a/share/mk/bsd.kmod.mk
+++ b/share/mk/bsd.kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.60 1999/04/20 14:33:24 peter Exp $
+# $Id: bsd.kmod.mk,v 1.61 1999/04/23 20:53:34 peter Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
#
@@ -197,9 +197,14 @@ beforeinstall:
afterinstall:
.endif
+_INSTALLFLAGS:= ${INSTALLFLAGS}
+.for ie in ${INSTALLFLAGS_EDIT}
+_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}}
+.endfor
+
realinstall: _SUBDIR
${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
- ${INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}
+ ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}
.if defined(LINKS) && !empty(LINKS)
@set ${LINKS}; \
while test $$# -ge 2; do \
OpenPOWER on IntegriCloud