[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: only run submake if that submake needs to be run?
From: |
Boris Kolpackov |
Subject: |
Re: only run submake if that submake needs to be run? |
Date: |
Fri, 20 Aug 2004 15:13:27 -0500 |
User-agent: |
Mutt/1.5.6i |
Paul D. Smith <address@hidden> writes:
> I didn't look to see how these are defined but I don't see how they can
> work in general.
>
> Consider, for example, something like this:
>
> XXFLAGS += -a
>
> foo.yy: foo.xx
> $(XX) $(XXFLAGS) -o $@ $<
>
> The XXFLAGS reference is embedded into a rule, so if you change the name
> of the variable it won't resolve properly when the rule is invoked.
>
>
> You can do this kind of frame idea only if you never have any rules
> defined in your included makefiles... right?
Not quite for I use target/pattern-specific variables in rules. It proved
to work surprisingly well for me.
-boris
signature.asc
Description: Digital signature