diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1995-03-04 07:30:32 +0800 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1995-03-04 07:30:32 +0800 |
commit | 2a84a00978ec180f552ce7d31ac3fd1c9db21492 (patch) | |
tree | 1bf395514f2a99a04bdf15fb4b3369252876ef67 /Mk/bsd.port.subdir.mk | |
parent | 99f421a7f2ca4b612d74dbee38335ad449d71a13 (diff) | |
download | freebsd-ports-gnome-2a84a00978ec180f552ce7d31ac3fd1c9db21492.tar.gz freebsd-ports-gnome-2a84a00978ec180f552ce7d31ac3fd1c9db21492.tar.zst freebsd-ports-gnome-2a84a00978ec180f552ce7d31ac3fd1c9db21492.zip |
Add support to miss out ``DUDS'' subdirectories. See thread in freebsd-ports
for more.
Diffstat (limited to 'Mk/bsd.port.subdir.mk')
-rw-r--r-- | Mk/bsd.port.subdir.mk | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk index 3b570b828d17..89a1278c87a5 100644 --- a/Mk/bsd.port.subdir.mk +++ b/Mk/bsd.port.subdir.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 -# $Id: bsd.port.subdir.mk,v 1.8 1995/01/03 11:52:01 jkh Exp $ +# $Id: bsd.port.subdir.mk,v 1.9 1995/01/05 01:46:05 jkh Exp $ .MAIN: all @@ -13,16 +13,26 @@ BINMODE?= 555 _SUBDIRUSE: .USE @for entry in ${SUBDIR}; do \ - (if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ - echo "===> ${DIRPRFX}$${entry}.${MACHINE}"; \ - edir=$${entry}.${MACHINE}; \ - cd ${.CURDIR}/$${edir}; \ - else \ - echo "===> ${DIRPRFX}$$entry"; \ - edir=$${entry}; \ - cd ${.CURDIR}/$${edir}; \ + OK=""; \ + for dud in $$DUDS; do \ + if [ $${dud} = $${entry} ]; then \ + OK="false"; \ + echo "===> ${DIRPRFX}$${entry} skipped"; \ + fi; \ + done; \ + if [ "$$OK" = "" ]; then \ + if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ + echo "===> ${DIRPRFX}$${entry}.${MACHINE}"; \ + edir=$${entry}.${MACHINE}; \ + cd ${.CURDIR}/$${edir}; \ + else \ + echo "===> ${DIRPRFX}$$entry"; \ + edir=$${entry}; \ + cd ${.CURDIR}/$${edir}; \ + fi; \ + ${MAKE} ${.TARGET:realinstall=install} \ + DIRPRFX=${DIRPRFX}$$edir/; \ fi; \ - ${MAKE} ${.TARGET:realinstall=install} DIRPRFX=${DIRPRFX}$$edir/); \ done ${SUBDIR}:: |