tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: make: new modifyer :Y
On Mon, Nov 07, 2011 at 11:56:27AM +0300, Aleksey Cheusov wrote:
> [irrelevant example elided - no one is arguing about length here - agc]
>
> Won't the following be better and easier?
>
> 30 .if ${PKG_DEVELOPER:Y}
> 31 CHECK_INTERPRETER?= yes
> 32 .else
No.
.if ${PKG_DEVELOPER:M${YES}}
CHECK_INTERPRETER=yes
.endif
is much more expressive, doesn't rely on a "special" modifier that
people have to look up to see what it means, doesn't pollute the
modifier language space, and is much more readable at first glance
even for non-native English speakers.
Regards,
Alistair
Home |
Main Index |
Thread Index |
Old Index