let *-dir-depends recurse globally, with one single file.

This commit is contained in:
espie 2003-08-04 14:37:48 +00:00
parent b8e4c98450
commit 63adb1a923

View File

@ -1,7 +1,7 @@
#-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
# $OpenBSD: bsd.port.subdir.mk,v 1.56 2003/08/04 14:16:53 espie Exp $
# $OpenBSD: bsd.port.subdir.mk,v 1.57 2003/08/04 14:37:48 espie Exp $
# FreeBSD Id: bsd.port.subdir.mk,v 1.20 1997/08/22 11:16:15 asami Exp
#
# The include file <bsd.port.subdir.mk> contains the default targets
@ -89,16 +89,34 @@ _SUBDIRUSE: .USE
else ${REPORT_PROBLEM}; fi
.endfor
_SUBDIRUSE_DEP: .USE
. for i in ${_SKIPPED}
@echo "===> $i skipped"
. endfor
@${_depfile_fragment}; for d in ${_FULLSUBDIR}; do \
dir=$$d; \
${_flavor_fragment}; \
${ECHO_MSG} "===> $$d"; \
set +e; \
if ! eval $$toset ${MAKE} ${.TARGET}; then \
${REPORT_PROBLEM}; \
fi; \
done
.for __target in all fetch package fake extract configure \
build describe distclean deinstall install \
reinstall checksum show fetch-makefile \
link-categories unlink-categories regress lib-depends-check \
homepage-links manpages-check \
all-dir-depends build-dir-depends run-dir-depends
homepage-links manpages-check
${__target}: _SUBDIRUSE
.endfor
.for __target in all-dir-depends build-dir-depends run-dir-depends
${__target}: _SUBDIRUSE_DEP
.endfor
clean: _SUBDIRUSE
.if defined(clean) && ${clean:L:Mreadmes}
rm -f ${.CURDIR}/README.html