GNU make: removes gotten files...but I don't want it to...help!

GNU make: removes gotten files...but I don't want it to...help!

Post by James Youngm » Wed, 29 May 1996 04:00:00



        I'm using GNU make and my makefile basically writes a DOS batch file
that will call the compiler.  The makefile checks out my source files as
required, but then deletes them again when exiting.  How do I suppress this
behaviour?

Thanks!

 
 
 

GNU make: removes gotten files...but I don't want it to...help!

Post by Paul D. Smi » Wed, 29 May 1996 04:00:00


[[ SC temporarily out of commission :( ]]


>    I'm using GNU make and my makefile basically writes a DOS batch file
> that will call the compiler.  The makefile checks out my source files as
> required, but then deletes them again when exiting.  How do I suppress this
> behaviour?

Look in the GNU make manual at the section on "Chains of Implicit
Rules", for the discussion of intermediate files (or look in the index
for "Intermediate Files").

--
-------------------------------------------------------------------------------

 Senior Software Engineer                                   Bay Networks, Inc.
-----------------------------------------------==<http://www.baynetworks.com/>-
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
     These are my opinions--Bay Networks takes no responsibility for them.

 
 
 

GNU make: removes gotten files...but I don't want it to...help!

Post by James Youngm » Wed, 29 May 1996 04:00:00



Quote:

>        I'm using GNU make and my makefile basically writes a DOS batch file
>that will call the compiler.  The makefile checks out my source files as
>required, but then deletes them again when exiting.  How do I suppress this
>behaviour?

>Thanks!

OK, I found the answer.  The files were gotten like this:-

GET = /usr/sccs/get

%:: SCCS/s.%
        $(GET) SCCS/s.%

And to make them survive, I had to make the pattern target
depend on the special target  .PRECIOUS:-

%: .PRECIOUS

It was all in the manual, I just hadn't read the right bit.

 
 
 

1. Removing files that don't follow convention ??

Hi have a few folders on the Sun that have files that were FTP'd that
are a problem.  The file names have spaces in them.  I can't rename or
delete them.  What can I do?  I even tried ftping back into the Sun from
a PC and couldn't use the rename or delete commands in the ws_ftp gui.
I want to delete them....

In the future, if I have Samba running how do I get around this file
name problem?

Thanks

Peter

2. freebsd on amd

3. Can't remove a file called "---remove-files"

4. /etc/suauth

5. Don't flame Unix, that's what makes the NET tick!

6. Can you love a platform without being a bigot?

7. Help wanted: applet viewer don't work on X11

8. Mustek Scanner MFS-12000

9. Help wanted: java interpreter don't work unter X11

10. Help wanted: java interpreter don't work on X11

11. 2.5.40 kbuild bug: mrproper removes files it shouldn't remove

12. How to remove files '-c' '-z'

13. Pls help: 'efax' and 'diald' don't quite get along