finished doing html wrappers of all submodules

This commit is contained in:
Dan Buch
2010-04-19 19:53:30 -04:00
parent 365cb8f87f
commit 6314580aab
11 changed files with 72 additions and 7 deletions

View File

@@ -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