bug-make
[Top][All Lists]
Advanced

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

Re: unexpected rm


From: Paul D. Smith
Subject: Re: unexpected rm
Date: Sun, 17 Feb 2002 11:12:22 -0500

%% andre maute <address@hidden> writes:

  am> GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
  am> Built for i686-pc-linux-gnu

  am> i wrote a little Makefile 
  am> i have two files test.cc, xtest.cxx

  am> where xtest.cxx contains the main function, 
  am> i use everywhere the variable $(RM) = rm -f

  am> typing 
  am> make clean
  am> make xtest

  am> causes nevertheless a
  am> rm test.o

  am> why, bug?

Without seeing the makefile I can't be completely sure, but I'll bet
that test.o is being considered an intermediate file.

See the docs on intermediate files in the GNU make manual.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



reply via email to

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