sympa-community / sympa

Sympa, Mailing List Management Software
https://www.sympa.community/sympa
GNU General Public License v2.0
241 stars 95 forks source link

"warning: ignoring prerequisites on suffix rule definition" with GNU make 4.3 #1651

Closed ikedas closed 8 months ago

ikedas commented 1 year ago

Version

Maybe any, with GNU make 4.3

Installation method

Source.

Expected behavior

No warnings during make is running.

Actual behavior

Warnings are shown:

...

Making all in libexec
make[2]: Entering directory '/.../.../src/libexec'
Makefile:961: warning: ignoring prerequisites on suffix rule definition

...

Making all in service
make[1]: Entering directory '/.../.../service'
Makefile:613: warning: ignoring prerequisites on suffix rule definition
Makefile:597: warning: ignoring prerequisites on suffix rule definition
Makefile:607: warning: ignoring prerequisites on suffix rule definition

...

Steps to reproduce

Extract the source, and then run:

$ autoreconf -i
$ ./configure
$ make

Additional information

The documentation of GNU make says:

warning: ignoring prerequisites on suffix rule definition

According to POSIX, a suffix rule cannot contain prerequisites. If a rule that could be a suffix rule has prerequisites it is interpreted as a simple explicit rule, with an odd target name. (...) In versions of GNU make prior to 4.3, no warning was emitted and a suffix rule was created, however all prerequisites were ignored and were not part of the suffix rule. Starting with GNU make 4.3 the behavior is the same, and in addition this warning is generated. In a future version the POSIX-conforming behavior will be the only behavior: no rule with a prerequisite can be suffix rule and this warning will be removed.