Follow-up Comment #7, bug #20501 (project make): Does it matter that the built-in variables get set before reading makefiles? I hope not. I think the people involved in this project are clever enough to unset a 'default' variable if the make flag -R is encountered.
I mean, the 'origin' function in makefiles can determine just that, if its value is default or not, so there must be some functionality in the sources to determine so. I guess there's also some sort of functionality to loop through all the defined variables. Combine the two and what do you get? Exactly what it should do... well, at least what I suggested :) The documentation should then be updated to state that -r should come before any rule, and -R before any inbuilt variable gets a conditional assignment (the ?= assignment). As for -r working properly, that's great, but then -p should be fixed. p.s. The 'ifeq ($(filter -r,$(MAKEFLAGS)),)' isn't really needed, -r won't get added twice. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?20501> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make