bug-ddrescue
[Top][All Lists]
Advanced

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

Re: New Makefile rule in 1.28 breaks detection of invalid make targets


From: Antonio Diaz Diaz
Subject: Re: New Makefile rule in 1.28 breaks detection of invalid make targets
Date: Mon, 29 Jan 2024 20:15:03 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14

Hi Christian,

Antonio Diaz Diaz wrote:
Christian Franke wrote:
The root of the problem is this new rule in Makefile.in:

# prevent 'make' from trying to remake source files
...
%.h %.cc : ;

It looks like an interference between the above empty rule and the
default rules of GNU make.

After seeking advice at help-make[1], I have replaced the '%.h %.cc : ;' rule above with these two lines in the Makefile:

MAKEFLAGS += -r
.SUFFIXES :

They should work with any version of GNU make, and I hope they will not cause harm with other makes.

[1] https://lists.gnu.org/archive/html/help-make/2024-01/msg00007.html

Best regards,
Antonio.



reply via email to

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