[bug #20501] MAKEFLAGS += -rR doesn't turn off default suffix rules, variables

2008-01-23 Thread Hendrik de Goede
Follow-up Comment #1, bug #20501 (project make): I'm using GNU make 3.81 through cygwin on Windows XP. The -rR flags are not the only ones not working as expected (expected by me at least), the option -S doesn't work as well. However, when running a subsequent call from the Makefile, they all

[bug #20501] MAKEFLAGS += -rR doesn't turn off default suffix rules, variables

2008-01-23 Thread Dave Korn
Follow-up Comment #2, bug #20501 (project make): As far as I can see this is not a bug, this is make performing exactly as described in the manual. MAKEFLAGS is not a live way of controlling a running make's behaviour, it is used solely for the purpose of passing down to a recursive invocation

[bug #20501] MAKEFLAGS += -rR doesn't turn off default suffix rules, variables

2008-01-23 Thread Hendrik de Goede
Follow-up Comment #3, bug #20501 (project make): I think it is a bug. To quote the make 3.81 documentation 'You can also set MAKEFLAGS in a makefile, to specify additional flags that should also be in effect for that makefile', in the same chapter you specified. p.s. Indeed, I meant the

[bug #20501] MAKEFLAGS += -rR doesn't turn off default suffix rules, variables

2008-01-23 Thread Dave Korn
Follow-up Comment #4, bug #20501 (project make): I'm sorry, I missed that! I think you're right; it is a bug. ___ Reply to this item at: http://savannah.gnu.org/bugs/?20501 ___ Message

Re: [bug #20501] MAKEFLAGS += -rR doesn't turn off default suffix rules, variables

2008-01-23 Thread Philip Guenther
On Jan 23, 2008 4:33 AM, Hendrik de Goede wrote: To quote the make 3.81 documentation 'You can also set MAKEFLAGS in a makefile, to specify additional flags that should also be in effect for that makefile', in the same chapter you specified. Unfortunately, it's not clear how MAKEFLAGS += -R

Re: [bug #20501] MAKEFLAGS += -rR doesn't turn off default suffix rules, variables

2008-01-23 Thread Hendrik de Goede
I see the problem, however I think the solution is 'rather' simple. The MAKEFLAGS -r should be specified before any rule, and -R unsets all defaults still set. If this is unwanted, and for some reason these 2 flags won't be supported from inside a Makefile, I would at least like the possibility

Typo in GNU make book

2008-01-23 Thread Lorenzo CIAMPOLINI
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) Best regards and thanks for ur work, Lorenzo --

RE: Typo in GNU make book

2008-01-23 Thread Dave Korn
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

[bug #20501] MAKEFLAGS += -rR doesn't turn off default suffix rules, variables

2008-01-23 Thread Boris Kolpackov
Follow-up Comment #6, bug #20501 (project make): Actually adding -r to MAKEFLAGS does work. It just that -p still prints the rules as if they were there. I use the following makefile fragment in our build system to get rid of all built-in (suffix and pattern) rules: # Remove all built-in rules.