summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-10-13 19:42:57 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-10-13 19:42:57 +0000
commitd7fe1b3fea9e9f111803b785b56b02d1bed076a6 (patch)
treeaa828d093b8b489b1796c8b398fa91f860f1f0ba /share
parent87255a034b80fd89af26e7177a022da774769173 (diff)
downloadFreeBSD-src-d7fe1b3fea9e9f111803b785b56b02d1bed076a6.zip
FreeBSD-src-d7fe1b3fea9e9f111803b785b56b02d1bed076a6.tar.gz
bsd.subdir.mk: Move all of the targets into ALL_SUBDIR_TARGETS.
Also improve documentation. The SUBDIR_TARGETS variable should really be named LOCAL_SUBDIR_TARGETS, but renaming it may be a surprise for downstream vendors who use this variable. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.subdir.mk13
1 files changed, 7 insertions, 6 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk
index cc66c9a..293b017 100644
--- a/share/mk/bsd.subdir.mk
+++ b/share/mk/bsd.subdir.mk
@@ -25,14 +25,17 @@
# This is a variant of install, which will
# put the stuff into the right "distribution".
#
-# afterinstall, all, all-man, beforeinstall, checkdpadd, clean,
-# cleandepend, cleandir, cleanilinks depend, install, lint,
-# maninstall, manlint, obj, objlink, realinstall, regress, tags
+# See ALL_SUBDIR_TARGETS for list of targets that will recurse.
+# Custom targets can be added to SUBDIR_TARGETS in src.conf.
#
.if !target(__<bsd.subdir.mk>__)
__<bsd.subdir.mk>__:
+ALL_SUBDIR_TARGETS= all all-man checkdpadd clean cleandepend cleandir \
+ cleanilinks cleanobj depend distribute lint maninstall manlint obj \
+ objlink realinstall regress tags ${SUBDIR_TARGETS}
+
.include <bsd.init.mk>
.if !defined(NEED_SUBDIR)
@@ -85,9 +88,7 @@ ${SUBDIR:N.WAIT}: .PHONY .MAKE
# Work around parsing of .if nested in .for by putting .WAIT string into a var.
__wait= .WAIT
-.for __target in all all-man checkdpadd clean cleandepend cleandir \
- cleanilinks cleanobj depend distribute lint maninstall manlint obj objlink \
- realinstall regress tags ${SUBDIR_TARGETS}
+.for __target in ${ALL_SUBDIR_TARGETS}
.ifdef SUBDIR_PARALLEL
__subdir_targets=
.for __dir in ${SUBDIR}
OpenPOWER on IntegriCloud