我有一个小脚本将markdown文件编译成html,并将其插入到模板的主体中,以及一些样式表和
javascript.我有一个GNU makefile来完成这个:
output.html: content.md compile.py style.css script.js python compile.py < $< > $@
当我运行这个时,我得到错误:
make: * No rule to make target
style.css',needed by
output.html’. Stop.
如果我删除compile.py,style.css和script.js,目标运行,但它不再依赖于文件,所以我可以在style.css中进行更改,并且它不会重新运行目标.
所有这些文件都在同一目录中:
my_project_directory/ content.md compile.py style.css script.js