关于makefile的dependency的问题,请教一个makefile的用法

max_xy 2006-11-30 11:10:27
all :test
test:hello.o
gcc -o test hello.o
hello.o : hello.c
gcc -c hello.c
clean :
rm *.o
TAGS:
@rm -f $@
find . -name '*.[ch]' | xargs etags -a
.makefirst:
@echo Making dependencies: please wait...
@touch .makefirst
%.h::
@echo Something wrong... deleting dependencies.
@-rm -f .makefirst

-include .makefirst

请问
这里TAGS和.makefirst,%.h::都在什么情况下执行?
...全文
222 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧