Make Everything My Precious
November 2, 2007 1:58 PM   RSS feed for this thread 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?
posted by bluefly to computers & internet (1 comment total)
Can you do either:

.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


« Older Are there any Native American ...   |   Where can I have a huge MySQL ... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
Your victories and woes as a unix/linux sysadmin July 21, 2008
Configure Readline with wrong directory. Oops. July 23, 2007
teach me to w00t for r00t. July 10, 2007
Help me find a cool little unix http utility I... June 23, 2007
No more shell games! May 31, 2006