Article View: net.bugs
Article #36Re: make dependency rules inadequate - (nf)
From: utzoodecvaxdukeharpoutah-csutah-...
Date: Thu, 22 Jul 1982 09:35
Date: Thu, 22 Jul 1982 09:35
14 lines
720 bytes
720 bytes
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
Technical Details
Message-ID:
<bnews.utah-gr.494>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
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 Subject: Re: make dependency rules inadequate - (nf) Date: Thu, 22 Jul 1982 09:35:55 +0000 Message-ID: <bnews.utah-gr.494>