diff options
author | Warner Losh <imp@FreeBSD.org> | 2015-10-05 21:41:55 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2015-10-05 21:41:55 +0000 |
commit | 3a845236dfd3863399c5407ca12fd3332f98d83a (patch) | |
tree | a83d1ee0e8f9e71d5120e4a0a9796511b35a265e /bin/Makefile | |
parent | 94746562ffe07000f583df542478eac394df05bd (diff) | |
download | src-test-3a845236dfd3863399c5407ca12fd3332f98d83a.tar.gz src-test-3a845236dfd3863399c5407ca12fd3332f98d83a.zip |
Start using the fact that SUBDIR.yes is added to SUBDIR
and move from the pattern of:
.if ${MK_FOO} != "no"
SUBDIR+= bar
.endif
to
SUBDIR.${MK_FOO}+= bar
since we know that MK_FOO is always either yes or no and the latter
form is easier to follow and much shorter. Various exception to this
pattern dealt with on an ah-hoc basis.
Discussed on arch@ a while ago.
Notes
Notes:
svn path=/head/; revision=288904
Diffstat (limited to 'bin/Makefile')
-rw-r--r-- | bin/Makefile | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/bin/Makefile b/bin/Makefile index ae509c41470ea..b3385dcd32d94 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -40,21 +40,10 @@ SUBDIR= cat \ test \ uuidgen -.if ${MK_RCMDS} != "no" -SUBDIR+= rcp -.endif - -.if ${MK_SENDMAIL} != "no" -SUBDIR+= rmail -.endif - -.if ${MK_TCSH} != "no" -SUBDIR+= csh -.endif - -.if ${MK_TESTS} != "no" -SUBDIR+= tests -.endif +SUBDIR.${MK_RCMDS}+= rcp +SUBDIR.${MK_SENDMAIL}+= rmail +SUBDIR.${MK_TCSH}+= csh +SUBDIR.${MK_TESTS}+= tests .include <bsd.arch.inc.mk> |