如何编写一个不会在Makefile中生成目标文件的中间规则,以便正确检查依赖关系?Makefile规则不会生成文件,但会检查依赖关系
所以我有这样的事情:
install_script: xxx.sql
psql -f $?
dump.txt: install_script
psql -c 'select * from xxx;' > [email protected]
我想确保install_script
只能获得运行时make dump.txt
当且仅当xxx.sql
被修改。
这就是我最终做的。 – voidvector 2012-02-24 20:17:13