【发布时间】:2012-04-16 20:07:40
【问题描述】:
我的项目中需要几个符号链接。
从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,因此它每次都重新创建符号链接。)
【问题讨论】: