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 - NormalItem Group: Enhancement
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: NoneOperating System: Any
Fixed Release: 4.0Triage 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:

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

Hi,

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

What I do now is:

HAVE_NO_BUILTIN_VARIABLES_OPTION := $(shell echo $(MAKEFLAGS) | grep -e R)
ifndef HAVE_NO_BUILTIN_VARIABLES_OPTION
$(error This makefile requires use of the -R/--no-builtin-variables option)
endif

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

Manoj Srivastava <srivasta>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by srivasta (Submitted the item)
  • -unavailable- added by srivasta (Debian BTS)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 16 Feb 2016 07:31:27 PM UTCpsmithStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.0
    Tue 16 Feb 2016 07:21:20 PM UTCsrivastaCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1