bug-make
[Top][All Lists]
Advanced

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

Re: undesired action of pattern rules?


From: Paul D. Smith
Subject: Re: undesired action of pattern rules?
Date: Thu, 13 Jun 2002 13:45:45 -0400

%% "Dr. M. Luedde" <address@hidden> writes:

  ml> Why does `make dvi' (GNU Make version 3.79.1 on i686-pc-cygwin) with
  ml> the Makefile attached below end up in doing `rm Master.aux', see the
  ml> attached log script?

  ml> I'm not telling `make' to do it and any implicit rules should be
  ml> switched off.

The .SUFFIXES rule actually removes only suffix rules, it doesn't remove
pattern rules.

Most of GNU make's builtin rules are implemented internally as suffix
rules, for just this reason, but some of them can't be (because suffixes
are less powerful than patterns).

If you want to get rid of those you'll need to either (a) pass -r to
your make invocation, or (b) remove them by hand in your makefile (see
the GNU make manual for how to cancel pattern rules: you can use "make
-p" to get a complete listing of the rules make knows about).

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