help-make
[Top][All Lists]
Advanced

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

Re: a small question about subst


From: Paul D. Smith
Subject: Re: a small question about subst
Date: Fri, 13 May 2005 10:18:41 -0400

%% Regarding Re: a small question about subst; you wrote:

  n> I still have a question to trouble you:)
  n> TO make question short, I use a simple example:

  n> When I make the target all,I found a
  n> objfile(/root/file1.o) not created.

  n> Then I use
  n> make --debug=b all 
  n> to get more information

  n> I found it said:
  n> Successfully remade target file /root/file1.o
  n> where /root/file1.o not exist?????? (not rm later)
  n> I think vpath is wrong would not give these success
  n> information.

As I mentioned last time, you aren't providing enough information.  From
what you've said there is no way to determine what's wrong.  You'll have
to provide us with an example of your rules:

  n> $(OBJ_DIR)/%.o: %.cpp
  n>        ... 

What is "..." here?  That's the critical step.

If make says "successfully remade" then it invoked your command, and
your command ran and did not exit with an error.  If the output file is
not there then your command didn't create it properly.

If you are prefixing your commandline with "@" to hide the output, take
that out until after you've debugged your makefile and know it works.
It will hide problems that would otherwise be easy to fix.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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]