🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.misc
Article #428

Re: gnu make & RCS question

#428
From: Paul D. Smith
Date: Mon, 08 Mar 1999 00:00
34 lines
2577 bytes
%% georgek@iluvatar.rsc.raytheon.com writes:

  g>   I'm using gnu make 3.77 on an SGI system. I'm trying to interface
  g> it with RCS. I've already got it to check out files that are in the
  g> local RCS directory, but am having a hard time getting it to delete
  g> some of them once they're done. I can get gmake to check out *.c
  g> and *.h files and delete the *.c files once it's done with them,
  g> but I can't get it to delete the *.h files when it's done. I'm
  g> guessing that having the *.h files listed in the dependencies is
  g> somehow keeping the *.h files from being considered intermediate
  g> files like the .c files.

Exactly correct.  See the GNU make manual chapter on Implicit Rules,
under the section Chains of Implicit Rules, to learn about intermediate
files.  Make will delete any intermediate files it created during the
build.  Also, that section will describe what constitutes an
intermediate file, and that a file mentioned in the makefile, even as a
dependency, will disqualify it as an intermediate file.

Finally, it will describe the .INTERMEDIATE special target and how to
use it to convince make that something is an intermediate file even if
it is explicitly mentioned.

Also, there are references to this in the manual indices under both
"intermediate files" and "removal of target files", etc.

Have fun!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@baynetworks.com>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.
Technical Details
Message-ID: <p5k8ws319l.fsf@baynetworks.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7bcq1a$ja6@news.rsc.raytheon.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 100159,5151d4f27c5a166e
X-Google-Attributes: gid100159,public
X-Google-Thread: 109f73,5151d4f27c5a166e
X-Google-Attributes: gid109f73,public
From: psmith@baynetworks.com (Paul D. Smith)
Subject: Re: gnu make & RCS question
Date: 1999/03/08
Message-ID: <p5k8ws319l.fsf@baynetworks.com>
X-Deja-AN: 452482262
References: <7bcq1a$ja6@news.rsc.raytheon.com>
To: georgek@iluvatar.rsc.raytheon.com
X-Complaints-To: usenet@spinner.corpeast.baynetworks.com
X-Trace: spinner.corpeast.baynetworks.com 920877016 26569 192.32.138.39 (8 Mar 1999 07:10:16 GMT)
Organization: Bay Networks, Inc. / Billerica, MA
Reply-To: psmith@baynetworks.com
NNTP-Posting-Date: 8 Mar 1999 07:10:16 GMT
Newsgroups: comp.sys.sgi.misc,gnu.utils.help