Make Everything My Precious
November 2, 2007 1:58 PM Subscribe
I'm using the 'make' utility on a Linux system. Is there a way in a Makefile to set all the intermediate files as PRECIOUS without having to list them individually?
This thread is closed to new comments.
.PRECIOUS: %.o
while specifying a pattern that matches your particular need, or:
.SECONDARY:
to suppress automatic deletion of intermediate files? This won't help if your losing intermediate files due to interruption of make, but will suppress the automatic removal.
These are described in detail in the make documentation.
posted by doorsnake at 2:41 PM on November 2, 2007