From: utzoo!decvax!duke!harpo!utah-cs!utah-gr!thomas
Newsgroups: net.bugs
Title: Re: make dependency rules inadequate - (nf)
Article-I.D.: utah-gr.494
Posted: Thu Jul 22 09:35:55 1982
Received: Sun Jul 25 15:59:58 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