why make said no rule to make target

Posted by guilin ?? on Stack Overflow See other posts from Stack Overflow or by guilin ??
Published on 2012-04-05T11:26:10Z Indexed on 2012/04/05 11:28 UTC
Read the original article Hit count: 249

Filed under:
|
|

Isn't Makefile syntax is

target: require_files
   cmd...

Why I got this problem?

Makefile

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

$: make bin-release/Application.swf

~/workspace/project/src/flash [2]19:20 make: * No rule to make target src/constant/*.as,', needed bybin-release/Application.swf'. Stop.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c