all: all_tune l1 l2 l3 l4
@echo Why is check.txt not update at level 4 ???
all_tune:
folder=z:\_make
l4: $(folder)\check.txt
@echo level 4
@type $(folder)\check.txt
l3:
@echo bbb222 >> $(folder)\b.txt
l2: $(folder)\check.txt
@echo level 2
@type $(folder)\check.txt
l1: ab
@echo level 1
@type $(folder)\a.txt
@type $(folder)\b.txt
$(folder)\check.txt: $(folder)\a.txt $(folder)\b.txt
@copy $(folder)\a.txt + $(folder)\b.txt $(folder)\check.txt
ab:
@echo aaa111 > $(folder)\a.txt
@echo bbb111 > $(folder)\b.txt
Because aim already build, so for twice action need to have two aims, one could be pseudoaim :
l4: check
@echo level 4
@type $(folder)\check.txt
check :
@copy $(folder)\a.txt + $(folder)\b.txt $(folder)\check.txt