diff options
author | ru <ru@FreeBSD.org> | 2002-02-06 18:05:53 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-02-06 18:05:53 +0000 |
commit | 47024dbb64adc32602f6f4d1a93a6b3fff10d2fc (patch) | |
tree | dff1a02d9bef3fd27d66d78bacade74de55d2085 /share | |
parent | 0cde3e64eba6cc6fc57a75a725126fdb38f4ba11 (diff) | |
download | FreeBSD-src-47024dbb64adc32602f6f4d1a93a6b3fff10d2fc.zip FreeBSD-src-47024dbb64adc32602f6f4d1a93a6b3fff10d2fc.tar.gz |
Back out revision 1.23 (SUBDIR_CHANGE).
Not objected to by: bde, eivind
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.subdir.mk | 49 |
1 files changed, 12 insertions, 37 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index b08065e..f169f0a 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -18,13 +18,6 @@ # Each of the targets will execute the same target in the # subdirectories. # -# SUBDIR_CHANGE A directory-tree that contains overrides for -# corresponding build subdirs. -# Each override is a file containing one subdirname per line: -# 'subdirlist' is a pure override -# 'subdirdrop' drops directories from the build -# 'subdiradd' adds directories to the build -# # +++ targets +++ # # distribute: @@ -45,37 +38,19 @@ __initialized__: .MAIN: all -.if defined(SUBDIR_CHANGE) && !empty(SUBDIR_CHANGE) && \ - exists(${SUBDIR_CHANGE}/${DIRPRFX}/subdirlist) -SUBDIR!=cat ${SUBDIR_CHANGE}/${DIRPRFX}/subdirlist -.endif - -.if defined(SUBDIR_CHANGE) && !empty(SUBDIR_CHANGE) && \ - exists(${SUBDIR_CHANGE}/${DIRPRFX}/subdiradd) -_SUBDIR_EXTRA!=cat ${SUBDIR_CHANGE}/${DIRPRFX}/subdiradd -.endif - _SUBDIRUSE: .USE - @for entry in ${SUBDIR} ${_SUBDIR_EXTRA}; do \ - (if ! (test -f ${SUBDIR_CHANGE}/${DIRPRFX}/subdirdrop && \ - grep -w $${entry} \ - ${SUBDIR_CHANGE}/${DIRPRFX}/subdirdrop \ - > /dev/null); then \ - if test -d ${.CURDIR}/$${entry}.${MACHINE_ARCH}; then \ - ${ECHODIR} \ - "===> ${DIRPRFX}$${entry}.${MACHINE_ARCH}"; \ - edir=$${entry}.${MACHINE_ARCH}; \ - cd ${.CURDIR}/$${edir}; \ - else \ - ${ECHODIR} "===> ${DIRPRFX}$$entry"; \ - edir=$${entry}; \ - cd ${.CURDIR}/$${edir}; \ - fi; \ - ${MAKE} ${.TARGET:realinstall=install} \ - SUBDIR_CHANGE=${SUBDIR_CHANGE} \ - DIRPRFX=${DIRPRFX}$$edir/; \ - fi; \ - ); \ + @for entry in ${SUBDIR}; do \ + (if test -d ${.CURDIR}/$${entry}.${MACHINE_ARCH}; then \ + ${ECHODIR} "===> ${DIRPRFX}$${entry}.${MACHINE_ARCH}"; \ + edir=$${entry}.${MACHINE_ARCH}; \ + cd ${.CURDIR}/$${edir}; \ + else \ + ${ECHODIR} "===> ${DIRPRFX}$$entry"; \ + edir=$${entry}; \ + cd ${.CURDIR}/$${edir}; \ + fi; \ + ${MAKE} ${.TARGET:realinstall=install} \ + DIRPRFX=${DIRPRFX}$$edir/); \ done ${SUBDIR}:: |