[bug #20501] MAKEFLAGS += -rR doesn't turn off default suffix rules, variables
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
ALREADY FIXED: Re: Typo in GNU make book
Yes I checked it is already fixed! Guys you're great. Best regards, Lorenzo Dave Korn wrote: On 23 January 2008 17:01, Lorenzo CIAMPOLINI wrote: Hi, Dunno if the address is correct, I have the pdf of GNU make by Stallman, McGrath, Smith, the July 2002 edition, I have a feeling taht at page 75 there is a bug in the define PROGRAM_template, instead of $$($(1)_OBJ) should be $$($(1)_OBJS) That seems to already be fixed in the make documentation at source: http://www.gnu.org/software/make/manual/html_node/Eval-Function.html#Eval-Function If you'd like an updated pdf, you can download one from http://www.gnu.org/software/make/manual/make.pdf cheers, DaveK -- Lorenzo Ciampolini, PhD, TCAD Engineer FTM/Crolles Site/Technology Modeling STMicroelectronics 850 rue Jean Monnet 38926 CROLLES FRANCE Tel.+33 (0) 476 925935 Fax +33 (0) 476 925732 ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make