Add support to miss out ``DUDS'' subdirectories. See thread in freebsd-ports
for more.
This commit is contained in:
parent
72fa75778e
commit
8e520bccaf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=1081
@ -1,5 +1,5 @@
|
|||||||
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
|
# 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
|
.MAIN: all
|
||||||
|
|
||||||
@ -13,16 +13,26 @@ BINMODE?= 555
|
|||||||
|
|
||||||
_SUBDIRUSE: .USE
|
_SUBDIRUSE: .USE
|
||||||
@for entry in ${SUBDIR}; do \
|
@for entry in ${SUBDIR}; do \
|
||||||
(if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
|
OK=""; \
|
||||||
echo "===> ${DIRPRFX}$${entry}.${MACHINE}"; \
|
for dud in $$DUDS; do \
|
||||||
edir=$${entry}.${MACHINE}; \
|
if [ $${dud} = $${entry} ]; then \
|
||||||
cd ${.CURDIR}/$${edir}; \
|
OK="false"; \
|
||||||
else \
|
echo "===> ${DIRPRFX}$${entry} skipped"; \
|
||||||
echo "===> ${DIRPRFX}$$entry"; \
|
fi; \
|
||||||
edir=$${entry}; \
|
done; \
|
||||||
cd ${.CURDIR}/$${edir}; \
|
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; \
|
fi; \
|
||||||
${MAKE} ${.TARGET:realinstall=install} DIRPRFX=${DIRPRFX}$$edir/); \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
${SUBDIR}::
|
${SUBDIR}::
|
||||||
|
Loading…
Reference in New Issue
Block a user