bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63821] Switch -r fails to disable default suffix rules.


From: Paul D. Smith
Subject: [bug #63821] Switch -r fails to disable default suffix rules.
Date: Mon, 20 Feb 2023 13:50:05 -0500 (EST)

Follow-up Comment #3, bug #63821 (project make):

The title is slightly misleading because MAKEFLAGS += -r DOES disable default
suffix rules, it just doesn't remove them if you add back the extensions to
the .SUFFIXES target.

See this test from tests/scripts/options/dash-r which passes:


# Make sure we can set it from within the makefile too
run_make_test(q!
COMPILE.c = echo
MAKEFLAGS += -r
!,
              'xxx.o',
              "#MAKE#: *** No rule to make target 'xxx.o'.  Stop.", 512);


Since we don't set .SUFFIXES we get the answer we want.  I do agree that your
change is needed though: we shouldn't "recover" the rules by setting .SUFFIXES
without redefining them.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63821>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]