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/