diff options
author | hoek <hoek@FreeBSD.org> | 1999-07-31 20:27:33 +0000 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 1999-07-31 20:27:33 +0000 |
commit | ea145ecb4c0bfe14ba796ccb8b2c30cb923dd32e (patch) | |
tree | d800b3712f711dc08884e4c0c6473043aca28ff6 /share/mk/bsd.lib.mk | |
parent | 50a739edfc9aba4fd1610718e2e43397b475492b (diff) | |
download | FreeBSD-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.lib.mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 831be75..454a6a4 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 -# $Id: bsd.lib.mk,v 1.86 1999/03/23 03:06:25 bde Exp $ +# $Id: bsd.lib.mk,v 1.87 1999/06/24 22:50:19 jmg Exp $ # .if !target(__initialized__) @@ -266,18 +266,27 @@ beforeinstall: SHLINSTALLFLAGS+= -fschg .endif +_INSTALLFLAGS:= ${INSTALLFLAGS} +.for ie in ${INSTALLFLAGS_EDIT} +_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} +.endfor +_SHLINSTALLFLAGS:= ${INSTALLFLAGS} +.for ie in ${INSTALLFLAGS_EDIT} +_SHLINSTALLFLAGS:= ${_SHLINSTALLFLAGS${ie}} +.endfor + realinstall: beforeinstall .if !defined(INTERNALLIB) ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - ${INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} + ${_INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} .if !defined(NOPROFILE) ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - ${INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR} + ${_INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR} .endif .endif .if defined(SHLIB_NAME) ${INSTALL} ${COPY} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - ${INSTALLFLAGS} ${SHLINSTALLFLAGS} \ + ${_INSTALLFLAGS} ${_SHLINSTALLFLAGS} \ ${SHLIB_NAME} ${DESTDIR}${SHLIBDIR} .if defined(SHLIB_LINK) ln -sf ${SHLIB_NAME} ${DESTDIR}${SHLIBDIR}/${SHLIB_LINK} @@ -285,7 +294,7 @@ realinstall: beforeinstall .endif .if defined(INSTALL_PIC_ARCHIVE) ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - ${INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${LIBDIR} + ${_INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${LIBDIR} .endif .if defined(LINKS) && !empty(LINKS) @set ${LINKS}; \ |