Makefile target dependency

Makefile

.....
all: T1 T2

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

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

執行順序為 T1 -> T2

=====================

Makefile

.....
all: T2 T1

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

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

執行順序為 T2 -> T1

posted @ 2019-03-22 10:28  wangchangruei  阅读(333)  评论(0编辑  收藏  举报