automake
[Top][All Lists]
Advanced

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

Re: side stepping automake limitations with custom dependencies


From: Nick Bowler
Subject: Re: side stepping automake limitations with custom dependencies
Date: Thu, 23 Jun 2011 16:51:43 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On 2011-06-23 16:25 -0400, Jie Zhang wrote:
> > With Posix make Makefiles, it would be doable with some more work, but
> > automake doesn't.  With GNU make extensions used in the Makefile.am, it
> > is almost impossible without implementing a large set of GNU make
> > extension parsing in automake as well.
> >
> With my limited Makefile knowledge, I thought it was enough to look
> one line ahead to see if the next line started with a $.RECIPEPREFIX.
> If yes, this rule has a recipe, if no, this rule is only for
> dependence.

Nope.  One counterexample with POSIX makefiles is that they can have
rules with commands entirely on one line.  For instance

foo: ; echo hello > $@

Cheers,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)



reply via email to

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