bug-make
[Top][All Lists]
Advanced

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

RE: A possible bug (or a feature) : dependencies shown in dry-run but n


From: David Mentre
Subject: RE: A possible bug (or a feature) : dependencies shown in dry-run but not rebuilt
Date: Thu, 14 Nov 2002 09:26:51 +0100

Hello Mr Smith,

> -----Original Message-----
> From: Paul D. Smith [mailto:address@hidden
> Sent: mercredi 13 novembre 2002 17:34
> To: David Mentre
>   dm>    Prerequisite `x.h' is newer than target `x.c'.    <<<<---- ok
> 
> No, not OK!
> 
> You don't want to specify that the .c file depends on the .h 
> file.  You
> don't update the .c file when the .h file changes: you have 
> no rule for
> that.
> 
> It's the .o file that depends on the .h file: the .o file is the file
> that needs to be updated when either the .c _or_ the .h file changes.

Thank you. I've understood my mistake. I think I should reread make's manual
*from the beginning*. :-]

Many thanks for your help.

Best regards,
d. mentré




reply via email to

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