finished doing html wrappers of all submodules
This commit is contained in:
25
Makefile
25
Makefile
@@ -1,23 +1,38 @@
|
||||
FLIXEL := $(PWD)/flixel
|
||||
WRAP := $(PWD)/bin/flashhtml.py
|
||||
TOP := $(PWD)
|
||||
FLIXEL := $(TOP)/flixel
|
||||
PYTHON := python2.6
|
||||
WRAP := $(TOP)/flash_html_wrap.py
|
||||
DIST := $(TOP)/dist
|
||||
|
||||
MXMLC := mxmlc
|
||||
MXMLC_FLAGS := -sp $(FLIXEL)
|
||||
|
||||
PROJECTS = \
|
||||
Flx-Invaders \
|
||||
FlxInvaders \
|
||||
FlxBloom \
|
||||
FlxBlur \
|
||||
FlxCollisions \
|
||||
FlxTeroids \
|
||||
HelloWorld
|
||||
|
||||
mkproject = cd $(project)/src && $(MAKE) && cd $(TOP) ;
|
||||
mkproject = \
|
||||
cd $(project)/src && $(MAKE) && \
|
||||
cd $(TOP) && \
|
||||
$(call mkhtmlwrap,$(project)) && \
|
||||
cd $(TOP) ;
|
||||
|
||||
|
||||
mkhtmlwrap = \
|
||||
cp $(TOP)/$(1)/src/$(1).swf $(DIST)/$(1).swf && \
|
||||
$(PYTHON) $(WRAP) -P $(DIST)/$(1).properties > $(DIST)/$(1).html
|
||||
|
||||
|
||||
%.html: %.swf
|
||||
$(call mkhtmlwrap,$*)
|
||||
|
||||
|
||||
all:
|
||||
$(foreach project,$(PROJECTS),$(mkproject))
|
||||
$(foreach project,$(PROJECTS),$(mkproject)) echo "done" ;
|
||||
|
||||
|
||||
.PHONY: all
|
||||
|
Reference in New Issue
Block a user