[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not rebuilding dependencies
From: |
Jason Elbaum |
Subject: |
Re: Not rebuilding dependencies |
Date: |
Thu, 16 Aug 2001 11:06:18 +0300 |
I don't think you understood my question.
I have a system with:
a: b
b: c
I've already run 'make b' and I'm satisfied with the build of b. Now,
running make again, I want to make a if b has changed. But I don't want
to remake b, even if c has changed since the last time I made b. I want
make to treat b as up-to-date for the purpose of making a.
That's the scenario.
Jason
Marc Martinez wrote:
>
> Makedepend $(CFLAGS) $(LST_SOURCES_C)
>
> This command generate a list
> # DO NOT DELETE
> your_obj.o: dependence.h
>
> -----Message d'origine-----
> De : Jason Elbaum [mailto:address@hidden
> Envoye : jeudi, 16. aout 2001 09:50
> A : address@hidden
> Objet : Not rebuilding dependencies
>
> Is it possible to define a make rule such that the target will be
> (re)built if the dependency has changed, but no attempt will be made to
> rebuild the dependency? That is, in:
>
> a: b
>
> If b has been changed, a will be rebuilt from it. If b has not been
> changed (or doesn't exist), no action will be taken even if b's
> dependencies have changed.
>
> Can this only be done by putting this rule in a separate makefile?
>
> Thanks,
>
> Jason Elbaum
> address@hidden