单词释义
PHONY:假的
1.不存在依赖
rm *.o
all: hello (存在依赖)
hello: main.o factorial.o hello.o
$(CC) main.o factorial.o hello.o -o hello
2.加.PHONY,忽略与clean同名的文件
.PHONY:clean
make clean >> rm *.o
3.不加.PHONY
make clean >> make: `clean' is up to date.
阅读(2236) | 评论(0) | 转发(0) |