help-make
[Top][All Lists]
Advanced

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

Re: Oddity with make and % macro


From: Brian J. Murrell
Subject: Re: Oddity with make and % macro
Date: Tue, 27 Mar 2001 08:29:43 -0800
User-agent: Mutt/1.3.15i

On Mon, Mar 26, 2001 at 10:33:14PM -0500, Paul D. Smith wrote:
> %% "Brian J. Murrell" <address@hidden> writes:
> 
> Note: you can replace "$(subst .sync-foo-,,$@)" here with just "$*".

Thanx for that pointer!

> That'll probably simplify things enough that you don't even need the
> temporary variable,

Indeed!

> if you don't want it, and you can make these all
> separate lines in the command script instead of concatenating them.

Yup.  Did that too.  :-)

> I do not see any mention of ".sync-foo-test" or ".sync-bar-test" in the
> makefile you've provided.

Specifically, with "test" no it does not.  I guess the fact that it's
there implicitly via the % macro does not count.

> Since they're not mentioned anywhere in the makefile, but instead
> inferred completely by make, they're considered intermediate files and
> eligible for deletion.

I can understand that.

> Just a question: why don't you want them deleted?

Because they are "pseudo" targets.  They simply keep track of whether
a target (which produces no local files) is newer than it's
prerequisites.

b.

-- 
Brian J. Murrell



reply via email to

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