[Top][All Lists]

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

[bug #57751] Improve POSIX support for SCCS

From: Paul D. Smith
Subject: [bug #57751] Improve POSIX support for SCCS
Date: Sun, 8 Nov 2020 11:37:43 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36

Follow-up Comment #17, bug #57751 (project make):

That is not dispositive because it tells you where the macro is _evaluated_
but doesn't tell you where an internal macro is _assigned_.

Where it is assigned is the key question, not where it is evaluated.

For a rule like this:

    foo.o : $@.c ;

clearly the $@ is evaluated when the target line is read in, as POSIX says,
but POSIX also says that internal macros "can be used in target and inference
rules", so there is absolutely nothing in the standard saying that make should
not work like this:

  * Parse/evaluate the target
  * Assign $@ to the target name
  * Parse/evaluate the prerequisites

That is why I asked for the text to be clarified saying that internal macros
are not required to be assigned except when evaluating commands.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]