我在项目中需要一些符号链接。
从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 $@
contrib/openlayers/img:
ln -s src/openlayers/img $@
但是这个规则每次都尝试创建符号链接。(我在ln
命令中使用了-f
标志,因此它每次都会重新创建符号链接。)