[gnu.emacs] Gnu Make Question

turner@smart.sps.mot.com (Robert Turner) (11/13/90)

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