Ah- great! I was also reading up on .SECONDARY with no prerequisites, but I suppose I should be specific and save just my object files with:

.PRECIOUS: %.o

Thanks!
-Adam

Greg Chicares wrote:
On 2008-02-06 21:02Z, Adam Lichtl wrote:
I have a simple Makefile which builds an executable using a pattern rule. When the target it built, make automatically removes the object files generated during the build process. How can I stop this?

See '.PRECIOUS' in the manual.

--

 Adam C. Lichtl, Research Associate
 RIKEN BNL Research Center, Building 510A
 Brookhaven National Laboratory, Upton, NY 11973-5000, USA
 Tel: (631) 344-3759  Fax: (631) 344-4067  email: [EMAIL PROTECTED]


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to