help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unwanted rm command at output of execution.


From: Scot Rider
Subject: unwanted rm command at output of execution.
Date: Tue, 3 Sep 2002 21:39:46 -0400

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]