%% David Mentre <[EMAIL PROTECTED]> writes:
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.
Change your rule definition from:
x.c: x.h \
perf.h \
...
autotest.h ;
to:
x.o: x.h \
perf.h \
...
autotest.h
(note you must remove the trailing semicolon as well!)
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make