bug-make
[Top][All Lists]
Advanced

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

Re: '-r' option


From: Paul D. Smith
Subject: Re: '-r' option
Date: Mon, 30 Apr 2001 21:29:53 -0400

%% Laird Kevin-QKL001 <address@hidden> writes:

  lk> It is desirable to turn off the use of built-in implicit rules
  lk> when running make. I have been successful in doing this via
  lk> command line option '-r' or with a MAKEFLAGS environment variable
  lk> set to '-r'. However, I would like to simply use the makefile. I
  lk> have put a MAKEFLAGS variable in my makefile and I can see that it
  lk> works for the '-n' option. However, it does nothing when I use the
  lk> '-r' option instead.

Correct.  It would be nice if this worked, but it doesn't.  There are
some issues with the startup sequence of GNU make which make this a bit
difficult to manage, although it could certainly be done.

  lk> What's the proper syntax, or what is the best way to disable the
  lk> built-in implicit rules from within the makefile, preferably
  lk> within employing a sub-make?

I usually do the following: first, use:

  .SUFFIXES:

to disable all the suffix rules; that will actually get most of them.
Then, for pattern rules that aren't disabled, you can turn them off
explicitly.  Use "make -p" to get a complete listing of all the rules
make knows about, to know which ones to disable.  I typically get rid of
the RCS and SCCS builtins and leave it at that.

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