summaryrefslogtreecommitdiffstats
path: root/bin/Makefile
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2015-10-05 21:41:55 +0000
committerimp <imp@FreeBSD.org>2015-10-05 21:41:55 +0000
commitce290acb45f06e3dde5c59f37fbc1b260b4660d8 (patch)
treea83d1ee0e8f9e71d5120e4a0a9796511b35a265e /bin/Makefile
parent7195bed2f5425f20bf7a4cd34dbf86559e17a05e (diff)
downloadFreeBSD-src-ce290acb45f06e3dde5c59f37fbc1b260b4660d8.zip
FreeBSD-src-ce290acb45f06e3dde5c59f37fbc1b260b4660d8.tar.gz
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.
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile19
1 files changed, 4 insertions, 15 deletions
diff --git a/bin/Makefile b/bin/Makefile
index ae509c4..b3385dc 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>
OpenPOWER on IntegriCloud