help-make
[Top][All Lists]
Advanced

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

Re: Recursive make problem (bug?)


From: Paul D. Smith
Subject: Re: Recursive make problem (bug?)
Date: Tue, 13 Aug 2002 15:33:44 -0400

%% Jason Elbaum <address@hidden> writes:

  je> The problem is that when Make calls itself recursively, it
  je> apparently doesn't really open a new shell. It somehow reads in
  je> the new makefile while retaining the currently-defined targets.

This is not true.  Each submake is invoked in a separate make process,
and no target definitions from the parent make are passed down.

  je> Makefile.standard:10: warning: overriding commands for target `xyz'
  je> Makefile.standard:10: warning: ignoring old commands for target `xyz'

You must be including the Makefile.standard makefile twice, somehow.

Try running with the -d option and this might help you see the problem.

-- 
-------------------------------------------------------------------------------
 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]