diff options
author | asami <asami@FreeBSD.org> | 1997-01-13 02:13:19 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1997-01-13 02:13:19 +0000 |
commit | 9ab12a3e1749ca11638ca50d6aa6df7ed115ee82 (patch) | |
tree | fed091b289290d506f63470c11bbfa804b25c959 /Mk | |
parent | 14de6bca98d9b8aa5093a9af943db4c48a1b54de (diff) | |
download | FreeBSD-ports-9ab12a3e1749ca11638ca50d6aa6df7ed115ee82.zip FreeBSD-ports-9ab12a3e1749ca11638ca50d6aa6df7ed115ee82.tar.gz |
Skip non-existent subdirectories. The diff is rather large because
the original logic went into a section of code assuming some
incarnation is there, but it's basically a "test -d" fix. Closes PR
ports/2082.
Reviewed by: max ("although I didn't test it, it looks fine")
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.subdir.mk | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk index 88187fd..f939dce 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.14 1996/04/09 22:54:13 wosch Exp $ +# $Id: bsd.port.subdir.mk,v 1.15 1996/11/01 07:22:37 asami Exp $ .MAIN: all @@ -22,16 +22,17 @@ _SUBDIRUSE: .USE ${ECHO_MSG} "===> ${DIRPRFX}$${entry} skipped"; \ fi; \ done; \ + if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ + edir=$${entry}.${MACHINE}; \ + elif test -d ${.CURDIR}/$${entry}; then \ + edir=$${entry}; \ + else \ + OK="false"; \ + ${ECHO_MSG} "===> ${DIRPRFX}$${entry} non-existent"; \ + fi; \ if [ "$$OK" = "" ]; then \ - if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ - ${ECHO_MSG} "===> ${DIRPRFX}$${entry}.${MACHINE}"; \ - edir=$${entry}.${MACHINE}; \ - cd ${.CURDIR}/$${edir}; \ - else \ - ${ECHO_MSG} "===> ${DIRPRFX}$$entry"; \ - edir=$${entry}; \ - cd ${.CURDIR}/$${edir}; \ - fi; \ + ${ECHO_MSG} "===> ${DIRPRFX}$${edir}"; \ + cd ${.CURDIR}/$${edir}; \ ${MAKE} ${.TARGET:realinstall=install} \ DIRPRFX=${DIRPRFX}$$edir/; \ fi; \ |