Trepan-Debuggers / Trepan-Debuggers/remake
remake -X does not save correct value in command line
Open
Nobody has claimed this yet.
volunteer wanted to fix
- Dominant language
- C
- Stars
- 850
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the difference using the Makefiles in the example and example/sub directories with remake FLAG=2 and remake -X FLAG=2. Trace how the command-line FLAG value is propagated during the -X run, and consider the issue done when the subdirectory prints 2 in both cases.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100