URL: <http://savannah.gnu.org/bugs/?45949>
Summary: MAKEFLAGS += -r has no effect for current Makefile Project: make Submitted by: None Submitted on: Sun 13 Sep 2015 07:45:04 AM UTC Severity: 3 - Normal Item Group: Documentation Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.1 Operating System: POSIX-Based Fixed Release: None Triage Status: None _______________________________________________________ Details: The 5.7.3 section of the documentation states that: _The MAKEFLAGS variable can also be useful if you want to have certain options, such as â-kâ (see Summary of Options), set each time you run make. You simply put a value for MAKEFLAGS in your environment. You can also set MAKEFLAGS in a makefile, to specify additional flags that should also be in effect for that makefile._ This does not seams to be true, at least for the -r flag. Example makefile: MAKEFLAGS += -r foo.c: touch $@ Apparently, _MAKEFLAGS += -r_ does not force make to ignore all implicit rules for the current makefile: $ rm foo.* ; make foo.o touch foo.c cc -c -o foo.o foo.c While: $ rm foo.* ; make -r foo.o make: *** No rule to make target `foo.o'. Stop. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45949> _______________________________________________ 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