bug-make
[Top][All Lists]
Advanced

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

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


From: Manoj Srivastava
Subject: [bug #47170] make: it would be nice to get -R behavior using a directive inside a Makefile
Date: Tue, 16 Feb 2016 19:21:22 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?47170>

                 Summary: make: it would be nice to get -R behavior using a
directive inside a Makefile
                 Project: make
            Submitted by: srivasta
            Submitted on: Tue 16 Feb 2016 01:21:20 PM CST
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:


Hi, 

This was reported by a debian user. Please retain a CC to 
 address@hidden 
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




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47170>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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