Update of bug #45211 (project make): Item Group: None => Enhancement Summary: Add option to MAKEFLAGS (How to set RM variable?) => MAKEFLAGS is not parsed until after makefiles are read on
_______________________________________________________ Follow-up Comment #2: The ?= assignment only sets variables if they are not already set. The RM variable is set by default. Resetting the state of make doesn't happen every time MAKEFLAGS is modified. It only happens once, after all makefiles are read in. So, when the RM ?= rm assignment is seen the RM variable still has its default value, and it is not assigned. Then after all makefiles are read in, MAKEFLAGS is processed and the default assignment for RM is removed, leaving it empty. I'll mark this as an enhancement request, to consider having changes to MAKEFLAGS take effect immediately instead of after all makefiles are parsed, but this seems like a low priority issue to me. Why don't you use just "RM = rm" instead of "RM ?= rm", and then things would work the way you want? _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45211> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make