Subject: Re: new feature for src/usr.bin/make: read-only variables
To: Roland Illig <>
From: Simon J. Gerraty <>
List: tech-userlevel
Date: 09/03/2005 14:18:05
>This patch adds a new feature to make(1). Variables can be marked
>read-only, so there is no chance of overwriting them accidentally. The
>intended usage is:

>CFLAGS.NetBSD=   -Wall
>CFLAGS.SunOS=    -O
>CFLAGS.IRIX=     -v

>PROG= foobar

Ignoring the merits of the idea (I'm not sure how much use it would get);
The .READONLY form I could live with but not the .BEGIN/.END form.

Also, what are the semantics of a "readonly" variable when overridden on the
command line?  POSIX says the command line takes precedence - which is a 
generally useful property.