tech-userlevel archive

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

Re: make: new modifyer :Y



On 11/7/11 4:30 AM, Aleksey Cheusov wrote:
  >>  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.

This syntax opens the possibility of allowing arbitrary function definitions in the future as someone suggested. (Support for functions would not be necessary right away, but if it was ever implemented, istrue could be trivially rewritten to take advantage of it without breaking Makefiles.)

Home | Main Index | Thread Index | Old Index