不是 Makefile 语法是
target: require_files
cmd...
为什么我会遇到这个问题?
生成文件
MXMLC = /opt/flex/bin/mxmlc
MXMLC_RELEASE = $(MXMLC) -debug=false -compiler.optimize=true
release: bin-release/Wrapper.swf, bin-release/Application.swf
bin-release/Application.swf: src/**/*.as, lib/*.swc
$(MXMLC_RELEASE) -output bin-release/Application.swf src/Application.as
@@-rm ../server/public/game/Application.swf
$(CP) bin-release/Application.swf ../server/public/game/Application.swf
bin-release/Wrapper.swf: src/*.as, src/engine/**/*.as, lib/*.swc
$(MXMLC_RELEASE) -output bin-release/Wrapper.swf src/Wrapper.as
@@-rm ../server/public/game/Wrapper.swf
$(CP) bin-release/Wrapper.swf ../server/public/game/Wrapper.swf
$: 制作 bin-release/Application.swf
~/workspace/project/src/flash [2]19:20 make: *没有规则来制作目标
src/constant/*.as,', needed by
bin-release/Application.swf'。停止。