bug-make
[Top][All Lists]
Advanced

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

[bug #20501] "MAKEFLAGS += -rR" doesn't turn off default suffix rules, v


From: Matt McCutchen
Subject: [bug #20501] "MAKEFLAGS += -rR" doesn't turn off default suffix rules, variables
Date: Tue, 17 Jul 2007 03:58:26 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070603 Fedora/2.0.0.4-2.fc7 Firefox/2.0.0.4

URL:
  <http://savannah.gnu.org/bugs/?20501>

                 Summary: "MAKEFLAGS += -rR" doesn't turn off default suffix
rules, variables
                 Project: make
            Submitted by: hashproduct
            Submitted on: Tuesday 07/17/2007 at 03:58
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: POSIX-Based
           Fixed Release: None

    _______________________________________________________

Details:

I'm using GNU make 3.81 on Fedora Core 7 Linux.

I put "MAKEFLAGS += -rR" at the top of my makefile and expected this to
disable all default rules and variables.  However, "make -p" shows that the
default suffix rules and variables are still present.

My makefile, "makeflags.mk" is the following:

-----
MAKEFLAGS += -rR

all:
-----

This illustrates that the options in the makefile do not turn off suffix
rules:

$ make -f makeflags.mk -p | grep '^\..*\..*'
.LIBPATTERNS = lib%.so lib%.a
.web.p:
.l.r:
.F.o:
.y.ln:
.def.sym:
.p.o:
.txinfo.dvi:
.l.ln:
.w.c:
.texi.dvi:
.cc.o:
.SUFFIXES: .out .a .ln .o .c .cc .C .cpp .p .f .F .r .y .l .s .S .mod .sym
.def .h .info .dvi .tex .texinfo .texi .txinfo .w .ch .web .sh .elc .el
.c.o:
.r.o:
.l.c:
.r.f:
.texinfo.info:
.w.tex:
.c.ln:
.s.o:
.texinfo.dvi:
.y.c:
.web.tex:
.texi.info:
.tex.dvi:
.cpp.o:
.C.o:
.txinfo.info:
.S.s:
.mod.o:
.F.f:
.S.o:
.f.o:
$ make -f makeflags.mk -p -rR | grep '^\..*\..*'
(No output)

This happens because default suffix rules and variables are loaded too soon
to be governed by the second call to decode_env_switches that picks up the
MAKEFLAGS set by the makefile.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20501>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]