tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: make: new modifyer :Y
On Sun, 06 Nov 2011, Aleksey Cheusov wrote:
with a more elegant
.if ${MKXXX:Y}
.endif
I am not opposed to :Y, but I note that you can already get most
of what you are looking for without changing make(1) at all. For
example, you could put a definition like this in a global include
file like bsd.sys.mk:
ISTRUE = Uno:M[Yy][Ee][Ss]
and then you can use it like this:
demo:
.if ${FOO:${ISTRUE}}
@echo FOO is true
.else
@echo FOO is not true
.endif
--apb (Alan Barrett)
Home |
Main Index |
Thread Index |
Old Index