Open vicshen opened 1 year ago
FLAG = 1 all: $(MAKE) -C sub
FLAG = 1 all: echo $(FLAG)
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'
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
Makefile in example dir
Makefile in example/sub dir
Result of remake (correct):
Result of remake -X (incorrect, should echo 2 instead of 1):
remake version: GNU Make 4.3+dbg-1.5