bug-make
[Top][All Lists]
Advanced

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

[bug #62356] Setting -R through MAKEFLAGS should set -r.


From: Dmitry Goncharov
Subject: [bug #62356] Setting -R through MAKEFLAGS should set -r.
Date: Sat, 23 Apr 2022 10:11:19 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62356>

                 Summary: Setting -R through MAKEFLAGS should set -r.
                 Project: make
            Submitted by: dgoncharov
            Submitted on: Sat 23 Apr 2022 02:11:17 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: SCM
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Setting -R through MAKEFLAGS should set -r, just like -R on the command line
sets -r.


++++
$ cat makefile
MAKEFLAGS:=-R
all: hello.o
$ make --debug=implicit 2>&1 |tail -10
    Trying implicit prerequisite 'RCS/hello.mod,v'.
    Trying pattern rule with stem 'hello.mod'.
    Trying implicit prerequisite 'RCS/hello.mod'.
    Trying pattern rule with stem 'hello.mod'.
    Trying implicit prerequisite 's.hello.mod'.
    Trying pattern rule with stem 'hello.mod'.
    Trying implicit prerequisite 'SCCS/s.hello.mod'.
   No implicit rule found for 'hello.o'.
  Must remake target 'hello.o'.
make: *** No rule to make target 'hello.o', needed by 'all'.  Stop.
$
----

Same example with this patch.

++++
$ make --debug=implicit 2>&1 |tail -10
Updating makefiles....
Updating goal targets....
 File 'all' does not exist.
 Looking for an implicit rule for 'all'.
 No implicit rule found for 'all'.
   File 'hello.o' does not exist.
   Looking for an implicit rule for 'hello.o'.
   No implicit rule found for 'hello.o'.
  Must remake target 'hello.o'.
make: *** No rule to make target 'hello.o', needed by 'all'.  Stop.
$
----




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62356>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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