]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Start using the fact that SUBDIR.yes is added to SUBDIR
authorimp <imp@FreeBSD.org>
Mon, 5 Oct 2015 21:41:55 +0000 (21:41 +0000)
committerimp <imp@FreeBSD.org>
Mon, 5 Oct 2015 21:41:55 +0000 (21:41 +0000)
commitce290acb45f06e3dde5c59f37fbc1b260b4660d8
treea83d1ee0e8f9e71d5120e4a0a9796511b35a265e
parent7195bed2f5425f20bf7a4cd34dbf86559e17a05e
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.
bin/Makefile
usr.bin/Makefile