Xref: utzoo comp.sys.apollo:7091 gnu.emacs:4140 Path: utzoo!mnetor!cxhq!mcdchg!mcdhup!mcdbos!motbos!motaus!oakhill!dover!turner@smart.sps.mot.com From: turner@smart.sps.mot.com (Robert Turner) Newsgroups: mot.general,comp.sys.apollo,gnu.emacs Subject: Gnu Make Question Message-ID: <2455@dover.sps.mot.com> Date: 12 Nov 90 23:00:35 GMT Sender: usenet@dover.sps.mot.com Reply-To: turner@smart.sps.mot.com (Robert Turner) Distribution: na Organization: Semiconductor Systems Design Technology, Motorola, Tempe AZ Lines: 27 I have a gnu make question. Environment: Apollo running BSD4.3, SR10.2. The sources are maintained in RCS. The question is how to get gnu make to check out an include file from RCS, perform the compile and then delete the include file. Sample makefile contains but a single line, below. pgm: pgm.o pgm.h With pgm.c and pgm.h checked into RCS, gnu make checks out pgm.c and pgm.h. Make compiles and links pgm.c to form pgm. Make then deletes pgm.c, but not pgm.h. I have been told that make views pgm.c as a temporary file as make had to "invent" it. Pgm.h on the other hand is explicitly stated so make did not "invent" it, therefore make does not delete it. Is it possible to get make to delete those objects that it checks out instead of deleting only "invented" objects? The above example has all of the files having the same root, "pgm". In the real world, there are several objects and several include files. Robert -- Robert Turner (602) 897-5441 Semiconductor Systems Design Technology, Motorola turner@dover.sps.mot.com OR ...!uunet!dover!turner "Most Americans do not know or appreciate the fact that citizenship is the primary political office under a constitutional government." Mortimer Adler