🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #36

Re: make dependency rules inadequate - (nf)

#36
From: utzoodecvaxdukeharpoutah-csutah-...
Date: Thu, 22 Jul 1982 09:35
14 lines
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-mail

Show 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>