Subject: Re: new feature for src/usr.bin/make: read-only variables
To: Christos Zoulas <christos@astron.com>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-userlevel
Date: 09/03/2005 09:09:30
On Sat, 3 Sep 2005, Christos Zoulas wrote:
>>> .BEGIN_READONLY:
>>> CFLAGS.NetBSD= -Wall
>>> CFLAGS.SunOS= -O
>>> CFLAGS.IRIX= -v
>>> .END_READONLY:
>>
>> FWIW, this feels very, very icky... Mixing targets and assignments
>> this way is just chemically pure semantic evil.
>>
>> Your effort is appreciated, but this is a bad syntax to introduce.
>
> I don't like it either. Maybe
>
> .READONLY: CFLAGS.NetBSD CFLAGS.SunOS CFLAGS.IRIX
Why do I have the feeling that make(1) is getting more and more of a
programming language? Anyone care to add a .print statement (or target, or
whatever)? It may make debugging easier, when wading through pages of
conditional assignments...
- Hubert