bug-make
[Top][All Lists]
Advanced

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

[bug #58529] MAKEOVERRIDES does not change the origin


From: Masahiro Yamada
Subject: [bug #58529] MAKEOVERRIDES does not change the origin
Date: Mon, 8 Jun 2020 00:56:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/83.0.4103.61 Chrome/83.0.4103.61 Safari/537.36

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

                 Summary: MAKEOVERRIDES does not change the origin
                 Project: make
            Submitted by: masahiroy
            Submitted on: Mon 08 Jun 2020 04:56:27 AM UTC
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

MAKEOVERRIDES += FOO=y

correctly overrides the value of FOO in
the recursive invocations, but
$(origin FOO) still returns 'command line'.



----------------(test code)------------------
MAKEOVERRIDES += FOO=overridden-value

all:
        @$(MAKE) sub-make

sub-make:
        @echo FOO is $(FOO)
        @echo origin of FOO is $(origin FOO)
----------------(test code end)------------------


$ make FOO=x
make[1]: Entering directory '/home/masahiro/workspace/test/'
FOO is y
origin of FOO is command line
make[1]: Leaving directory '/home/masahiro/workspace/test/'


I think $(origin FOO) should return 'override' in this case.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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