Makefile target dependency

Makefilecode

.....
all: T1 T2

T1:
    @echo "<===" $@

T2:
    @echo "<===" $@
.....
make

執行順序為 T1 -> T2file

=====================make

Makefileco

.....
all: T2 T1

T1:
    @echo "<===" $@

T2:
    @echo "<===" $@
.....
make

執行順序為 T2 -> T1

相關文章
相關標籤/搜索