[Top][All Lists]

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

Re: [courier-users] Re: Build fixes for courier-imap 1.3.2

From: Paul D. Smith
Subject: Re: [courier-users] Re: Build fixes for courier-imap 1.3.2
Date: Sun, 4 Feb 2001 17:38:59 -0500

  >>> an extra "-" in the install-configure target. It was causing the build 
  >>> to fail when using DESTDIR.

  cs> install-configure:
  cs>   @echo
  cs>   $(MAKE) -$(MAKEFLAGS) install-configure-local DESTDIR=$(DESTDIR)

  >> Your make is broken.  The - is required.

It's incorrect to use MAKEFLAGS explicitly on a submake invocation like

Make is designed to transmit information about the invoking commandline,
including flags and variable overrides, via the _environment_.  That is,
the MAKEFLAGS variable is set appropriately, and put into the
environment of each subprocess.  If the subprocess is another instance
of make, it will examine that variable in its environment, retrieve
those values, and treat them as if they were provided on the command

Thus, you should never put $(MAKEFLAGS) explicitly in a submake
invocation like that.  Submakes should always be invoked simply as
$(MAKE), plus any extra targets or variables.

The only time you should use MAKEFLAGS is if you want to override some
flags the user provided.


 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]