bugmake - Bugs: bug #47170, make: it would be nice to get -R...


bug #47170: make: it would be nice to get -R behavior using a directive inside a Makefile

Submitted by:  Manoj Srivastava <srivasta>
Submitted on:  Tue 16 Feb 2016 07:21:20 PM UTC  
Severity:  3 - Normal Item Group:  Enhancement
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  None Operating System:  Any
Fixed Release:  4.0 Triage Status:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 16 Feb 2016 07:31:27 PM UTC, comment #1: 

This is already supported in GNU make 4.0 and above; from the NEWS file:

* Setting the -r and -R options in MAKEFLAGS inside a makefile now works as
  expected, removing all built-in rules and variables, respectively.

Paul D. Smith <psmith>
Project Administrator
Tue 16 Feb 2016 07:21:20 PM UTC, original submission:  


This was reported by a debian user. Please retain a CC to
 -email is unavailable-
so that the Debian BTS has a copy of your input.

What I do now is:

   $(error This makefile requires use of the -R/--no-builtin-variables option)

which forces users of the makefile to do it.  But there should be a way to just do this from with the Makefile.  The implicit rules and default variable values represent the cruft of a bygone era and aren't worth all the trouble and confusion they cause.  And they were an ironic and bad idea to begin with,
since by definition and convention firm enough to merit them is just going to get put in somebodies IDE anyway: make is useful for the strange stuff and the custom work.


Manoj Srivastava <srivasta>


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

Attach Files:

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 (Posted a comment)
  • -email is unavailable- added by srivasta (Submitted the item)
  • -email is unavailable- added by srivasta (Debian BTS)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-16 psmith StatusNone => Duplicate
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.0
    2016-02-16 srivasta Carbon-Copy- => Added 620211-forwarded@bugs.debian.org

    Back to the top

    Powered by Savane 3.5