tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make: new modifyer :Y



 >>   >>  Won't the following be better and easier?
 >>   >>
 >>   >>       30 .if ${PKG_DEVELOPER:Y}
 >>   >>       31 CHECK_INTERPRETER?=             yes
 >>   >>       32 .else
 >>
 >>> There are many different ways to express it better than the above.\
 >> Show them please.

> I guess something like:

> .if istrue(PKG_DEVELOPER)

> would do the trick.
Functions were my original idea.
http://mail-index.netbsd.org/tech-userlevel/2009/03/25/msg001969.html

> This syntax opens the possibility of allowing arbitrary function
> definitions in the future as someone suggested.
http://mail-index.netbsd.org/tech-userlevel/2009/03/25/msg001958.html

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index