Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remake -X does not save correct value in command line #141

Open
vicshen opened this issue May 12, 2023 · 0 comments
Open

remake -X does not save correct value in command line #141

vicshen opened this issue May 12, 2023 · 0 comments

Comments

@vicshen
Copy link

vicshen commented May 12, 2023

Makefile in example dir

FLAG = 1
all:
        $(MAKE) -C sub

Makefile in example/sub dir

FLAG = 1
all:
        echo $(FLAG)

Result of remake (correct):

M1: /proj/example % remake FLAG=2
remake -C sub
remake[1]: Entering directory '/proj/example/sub'
echo 2
2
remake[1]: Leaving directory '/proj/example/sub'

Result of remake -X (incorrect, should echo 2 instead of 1):

M1: /proj/example % remake -X FLAG=2
Reading makefiles...
Updating makefiles...
Updating goal targets...
-> (/proj/example/Makefile:2)
all: 
remake<0> c
remake -C sub
remake[1]: Entering directory '/proj/example/sub'
echo 1
1
remake[1]: Leaving directory '/proj/example/sub'

remake version: GNU Make 4.3+dbg-1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants