You've given a lot of good info here, but you're missing the most
important part: a sample of the makefile rule you used to invoke the
recursive make.

I'll bet it looks something like:

  subdir:
        cd subdir; $(MAKE) $(MAKEFLAGS)

That's an incorrect use of MAKEFLAGS.  See the GNU make manual for
detailed discussion on passing options to submakes, but the short of it
is you should never put $(MAKEFLAGS) or $(MFLAGS) on a make invocation
line.

Those variables are managed by make itself, and passed to recursive
makes via the _environment_, not the command line.

The MAKEFLAGS variable is documented to not contain a leading "-" except
in special circumstances.

The correct and proper way to invoke a recursive make is to just use the
$(MAKE) variable, no options (obviously adding command line targets is
OK).  This will DTRT in all but the most unusual situations.

HTH...

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.ultranet.com/~pauld/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Reply via email to