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.
#
.SUFFIXES:

ifeq ($(filter -r,$(MAKEFLAGS)),)
MAKEFLAGS += -r
endif

There was a thread on one of the GNU make mailing lists about this
interesting behavior some time ago.

As for adding -R, I think it is quite obvious why it does not work: make sets
built-in variables before it starts reading makefiles.

Boris

    _______________________________________________________

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

Reply via email to