Move emscripten build to a separate Make target, remove Lua targets which I haven't tried to build.

This commit is contained in:
James Gregory 2013-04-22 13:47:09 -07:00
parent bb8dc433fc
commit 172a96746d
1 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,4 @@
PLATFORM = emscripten
PLATFORM = linux
define MAKE_TARGET
+$(MAKE) -C external/chipmunk/proj.$(PLATFORM) $@
@ -14,10 +14,26 @@ define MAKE_TARGET
+$(MAKE) -C samples/Lua/TestLua/proj.$(PLATFORM) $@
endef
define EMSCRIPTEN_MAKE_TARGET
+$(MAKE) -C external/chipmunk/proj.emscripten $1
+$(MAKE) -C external/Box2D/proj.emscripten $1
+$(MAKE) -C CocosDenshion/proj.emscripten $1
+$(MAKE) -C extensions/proj.emscripten $1
+$(MAKE) -C cocos2dx/proj.emscripten $1
+$(MAKE) -C scripting/lua/proj.emscripten $1
+$(MAKE) -C samples/Cpp/HelloCpp/proj.emscripten $1
+$(MAKE) -C samples/Cpp/TestCpp/proj.emscripten $1
+$(MAKE) -C samples/Cpp/SimpleGame/proj.emscripten $1
endef
all:
$(call MAKE_TARGET,all)
clean:
$(call MAKE_TARGET,clean)
$(call EMSCRIPTEN_MAKE_TARGET,clean)
.PHONY: all clean
emscripten:
$(call EMSCRIPTEN_MAKE_TARGET,all)
.PHONY: all clean emscripten