On Fri, Sep 23, 2016 at 4:09 PM, David Boyce <david.s.bo...@gmail.com> wrote: > In that case there does seem to be at least one bug here. In reference to > the sentence: > > "Macros defined by the MAKEFLAGS environment variable and macros defined in > the makefile(s) shall not be added to the environment of make if they are > not already in its environment." > > And building on Eddy Welbourne's example: > > % cat Makefile > WURGLE = 11 > MAKEFLAGS = WURGLE=$(WURGLE)
You need to read all the applicable bits in the standard before calling behavior incorrect. In particular, the Macros section has this line earlier in it: The result of setting MAKEFLAGS in the Makefile is unspecified. So if you want POSIX-like behavior, don't do that; if you do that, you're at the whims of GNU make's choices. Philip Guenther _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make