Makefile
.....
all: T1 T2
T1:
@echo "<===" $@
T2:
@echo "<===" $@
.....
make
執行順序為 T1 -> T2
=====================
Makefile
.....
all: T2 T1
T1:
@echo "<===" $@
T2:
@echo "<===" $@
.....
make
執行順序為 T2 -> T1
Makefile
.....
all: T1 T2
T1:
@echo "<===" $@
T2:
@echo "<===" $@
.....
make
執行順序為 T1 -> T2
=====================
Makefile
.....
all: T2 T1
T1:
@echo "<===" $@
T2:
@echo "<===" $@
.....
make
執行順序為 T2 -> T1
转载于:https://www.cnblogs.com/youchihwang/p/10576659.html