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 
 620211-forwar...@bugs.debian.org 
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/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to