automake
[Top][All Lists]
Advanced

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

Re: Automake barfing on $(shell ...) syntax?


From: Nick Bowler
Subject: Re: Automake barfing on $(shell ...) syntax?
Date: Wed, 22 Dec 2010 17:23:01 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On 2010-12-20 17:39 -0800, Philip Prindeville wrote:
> The odd thing is that even though it complains, it still generates the
> correct Makefile in the first case:
> 
> SYMFILES = $(srcdir)/uni.h $(shell $(CC) $(CFLAGS) -E
> $(srcdir)/header.c | $(AWK) -f $(srcdir)/script.awk)
> 
> Does automake need to be $(shell ...)-aware?

The warning is:

> src/q2931/Makefile.am:21: shell $(CC: non-POSIX variable name
> src/q2931/Makefile.am:21: (probably a GNU make extension)

and automake is entirely correct; you are using a GNU make extension.
Ideally, you should avoid the use of such non-portable extensions, but
if it is not feasible, you may disable the warning by passing
-Wno-portability to AM_INIT_AUTOMAKE.



reply via email to

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