In a Makefile
with
%.o: %.c
@echo Compiling $< ...
I'm getting the warning '%'-style pattern rules are a GNU make extension
when I run autoreconf --install
(of autoconf
version 2.69). The warning is not very clear, but makes me think that there's something to be added to configure.ac
.
I conducted searches on google.com, duckduckgo.com and yahoo.com, but they all don't seem to be able to differentiate between the large number of build logs they index (why should they...) which makes the search painful. I figured that:
- I can silence the warning by adding
AM_INIT_AUTOMAKE([-Wno-portability])
toconfigure.ac
(found in a post of the openais mailing list) which seems not great because simply silencing a warning is generally not a good idea in a technical environment - please tell me if GNU autotools is an exception.