我需要一些符号链接在我的项目中。是否依赖于Makefile中可能的符号链接?
从src/openlayers
,文件夹img
和theme
必须在contrib/openlayers
符号链接。 contrib/openlayers
文件夹也应该自动创建。
.PHONY: run
run: contrib/openlayers/theme contrib/openlayers/img
../bin/pserve development.ini --reload
contrib/openlayers/theme:
ln -s src/openlayers/theme [email protected]
contrib/openlayers/img:
ln -s src/openlayers/img [email protected]
但是这个规则试图每次创建符号链接。 (我把-f
标志设置为ln
,所以它每次都重新创建符号链接。)
你是对的,符号链接被打破。 – 2012-04-17 07:17:49