[Top][All Lists]

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

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

From: Philip Prindeville
Subject: Re: Automake barfing on $(shell ...) syntax?
Date: Wed, 22 Dec 2010 16:10:11 -0800
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20101207 Thunderbird/3.1.7

On 12/22/10 2:23 PM, Nick Bowler wrote:
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/ shell $(CC: non-POSIX variable name
src/q2931/ (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.

Since I only needed it in the child Makefile, I stuffed it into 
src/q2931/ as:

AUTOMAKE_OPTIONS = -Wno-portability

and that fixed it.  Thanks!!!!

reply via email to

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