我的项目中需要几个符号链接。
来自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 $@
但是这个规则每次都尝试创建符号链接。(我把-f标志放到ln,所以它每次都重新创建符号链接。)