[Top][All Lists]

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

[bug #45949] MAKEFLAGS += -r has no effect for current Makefile

From: anonymous
Subject: [bug #45949] MAKEFLAGS += -r has no effect for current Makefile
Date: Sun, 13 Sep 2015 07:45:05 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:40.0) Gecko/20100101 Firefox/40.0


                 Summary: MAKEFLAGS += -r has no effect for current Makefile
                 Project: make
            Submitted by: None
            Submitted on: Sun 13 Sep 2015 07:45:04 AM UTC
                Severity: 3 - Normal
              Item Group: Documentation
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None



The 5.7.3 section of the documentation states that:

_The MAKEFLAGS variable can also be useful if you want to have certain
options, such as ‘-k’ (see Summary of Options), set each time you run
make. You simply put a value for MAKEFLAGS in your environment. You can also
set MAKEFLAGS in a makefile, to specify additional flags that should also be
in effect for that makefile._

This does not seams to be true, at least for the -r flag. Example makefile:

    touch $@

Apparently, _MAKEFLAGS += -r_ does not force make to ignore all implicit rules
for the current makefile:

$ rm foo.* ; make foo.o
touch foo.c
cc    -c -o foo.o foo.c


$ rm foo.* ; make -r foo.o
make: *** No rule to make target `foo.o'.  Stop.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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