Makefile PHONY

case 1:

Makefilehtml

clean:
    rm a

environment_1 :
There is only file acode

$ make clean

clean ahtm

environment_2 :
There are two file a and cleanblog

$ make clean
make: 'clean' is up to date.

can't clean aget

case 2:

Makefileclass

.PHONY: clean

clean:
    rm a

environment_1 :
There is only file adate

$ make clean

clean afile

environment_2 :
There are two file a and cleanmakefile

$ make clean

clean avi

reference:
http://deanjai.blogspot.com/2006/03/makefilevpathphony.html
https://read01.com/zh-tw/NyRx80.html#.XJM-JIURVmU

相關文章
相關標籤/搜索