help-make
[Top][All Lists]
Advanced

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

Solved: Re: building templates


From: Martin Kleinschmidt
Subject: Solved: Re: building templates
Date: Thu, 10 Apr 2003 16:08:38 +0200
User-agent: Mutt/1.4i

On Don, 10 Apr 2003, Paul D. Smith wrote:

>%% Martin Kleinschmidt <address@hidden> writes:
>
>  mk> BUT: Replacing warning bey eval:
>
>It's possible you're running into a bug in eval; there are a couple of
>them in this initial release of eval.

Oh - didn't know it's a new feature, because I'm new to make :-)

>  >> ZOBJS = zaaa.o zbbb.o
>  >> 
>  >> $(patsubst %.o,%.f,$(ZOBJS)) : %.f : %.F
>  >>            $(CC) -E -P $(ZWHICH) $< -o $@
>
>  mk> I don't understand this.
>
>Look up static pattern rules in the GNU make manual.

Ah - okay agreed - it's an RTFM :-)

>  mk> That's TWO ":" in one line?
>
>Yes.  That's what makes it a static pattern rule.

ok.

>  mk> And it lacks the prefix change from z* to x*
>
>Oops, missed that.  Well, add that in; the pattern here can be the same
>as in a regular pattern rule.

Yes:

$(patsubst %.o,%.f,$(ZOBJS)) : z%.f : x%.F
        $(CC) -E -P $(ZWHICH) $< -o $@

works nicely and does exactly what I wanted,

Thank you!

   ...martin




reply via email to

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