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/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make