make dependency rules inadequate - (nf)

utzoo!decvax!duke!harpo!utah-cs!utah-gr!thomas utzoo!decvax!duke!harpo!utah-cs!utah-gr!thomas
Thu Jul 22 09:35:55 AEST 1982


It is NOT the .c file which depends on the .h file.  The .o file depends
on the .h (i.e., when you change a .h file and recompile, nothing happens
to the .c file).  So, the rules should read:

all: a.o
a.o: a.c a.h

The only reason to have a .c depend on something is if the .c file is actually
generated from something else, e.g.:

a.c: a.y

=Spencer



More information about the Net.bugs mailing list