make deletes intermediate (produced by make as a result from '%'-rules, and not directly indicated as a target on the command line, or sth along those lines) results as soon as they're not needed any more (for possibly other productions. See the docs for ".PRECIOUS" for how to 'switch this off'.
Ciao, Johan Bezem CSK Software AG Scot Rider wrote: > > In the following stripped down makefile, I am finding an unwanted "rm" > command at the end of the makefile's execution. Could someone tell me where > it is coming from. Better still, how to stop it. > I've noticed that if I replace the $< and $@ with ip.c and ip.o , the > 'rm' command goes away > > ==== pertinent part of makefile: ====== > > %.o : %.c > $(CC) $(FLAGS) $(INCLUDE) -c $< -o $@ > > % : %.o > echo hello2 > > ======== execution ========= > >make --no-builtin-variables ip1 > > ======== output ============ > > /usr/ibmcxx/bin/xlc -c ip1.c -o ip1.o > echo hello2 > hello2 > rm ip1.o > > Scot > > _______________________________________________ > Help-make mailing list > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/help-make _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
