Hello Mr Smith,

> -----Original Message-----
> From: Paul D. Smith [mailto:psmith@;gnu.org]
> 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é


_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to