diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2017-01-03 23:06:39 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2017-01-03 23:06:39 +0000 |
commit | c7bf15175dbaf1dbb0ee7f709aff0655f1e0f8b4 (patch) | |
tree | 50006af07e1463e5798a9a62913d3560610bc525 /Makefile | |
parent | f156cf7f474381c09fef820497b789e15c2cc86d (diff) | |
download | FreeBSD-src-c7bf15175dbaf1dbb0ee7f709aff0655f1e0f8b4.zip FreeBSD-src-c7bf15175dbaf1dbb0ee7f709aff0655f1e0f8b4.tar.gz |
MFC r305147:
Add a 'make print-dir' that simply traverses all directories and prints them.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -109,7 +109,8 @@ # Note: we use this awkward construct to be compatible with FreeBSD's # old make used in 10.0 and 9.2 and earlier. -.if defined(MK_DIRDEPS_BUILD) && ${MK_DIRDEPS_BUILD} == "yes" && !make(showconfig) +.if defined(MK_DIRDEPS_BUILD) && ${MK_DIRDEPS_BUILD} == "yes" && \ + !make(showconfig) && !make(print-dir) # targets/Makefile plays the role of top-level .include "targets/Makefile" .else @@ -132,7 +133,7 @@ TGTS= all all-man buildenv buildenvvars buildkernel buildworld \ xdev-links native-xtools stageworld stagekernel stage-packages \ create-world-packages create-kernel-packages create-packages \ packages installconfig real-packages sign-packages package-pkg \ - test-system-compiler + print-dir test-system-compiler # XXX: r156740: This can't work since bsd.subdir.mk is not included ever. # It will only work for SUBDIR_TARGETS in make.conf. @@ -257,6 +258,10 @@ _TARGET_ARCH= ${XDEV_ARCH} _TARGET?= ${MACHINE} _TARGET_ARCH?= ${MACHINE_ARCH} +.if make(print-dir) +.SILENT: +.endif + # # Make sure we have an up-to-date make(1). Only world and buildworld # should do this as those are the initial targets used for upgrades. |