bugmake - Bugs: bug #45949, MAKEFLAGS += -r has no effect for...

 
 

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

Submitter:  None
Submitted:  Sun 13 Sep 2015 07:45:04 AM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.82 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 13 Sep 2015 08:14:19 AM UTC, comment #1: 

Sorry, wrong make version. Was 3.81 and 3.82. Apparently, this has been fixed in 4.0 and 4.1. Please ignore.

Anonymous
Sun 13 Sep 2015 07:45:04 AM UTC, original submission:  

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:


MAKEFLAGS += -r
foo.c:
    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


While:


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


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-15 psmith Item GroupDocumentation Enhancement
        StatusNone Duplicate
        Open/ClosedOpen Closed
        Component Version4.1 3.82

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code