2010-04-18 19:14:34 +00:00
|
|
|
TOP := $(PWD)
|
2010-04-19 23:53:30 +00:00
|
|
|
FLIXEL := $(TOP)/flixel
|
|
|
|
PYTHON := python2.6
|
|
|
|
WRAP := $(TOP)/flash_html_wrap.py
|
|
|
|
DIST := $(TOP)/dist
|
2010-04-17 19:21:31 +00:00
|
|
|
|
|
|
|
MXMLC := mxmlc
|
|
|
|
MXMLC_FLAGS := -sp $(FLIXEL)
|
|
|
|
|
2010-04-18 19:14:34 +00:00
|
|
|
PROJECTS = \
|
2010-04-19 23:53:30 +00:00
|
|
|
FlxInvaders \
|
2010-04-18 19:14:34 +00:00
|
|
|
FlxBloom \
|
|
|
|
FlxBlur \
|
|
|
|
FlxCollisions \
|
|
|
|
FlxTeroids \
|
2010-04-20 00:18:26 +00:00
|
|
|
HelloWorld \
|
|
|
|
Mode
|
|
|
|
|
2010-04-18 19:14:34 +00:00
|
|
|
|
2010-04-19 23:53:30 +00:00
|
|
|
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
|
2010-04-19 23:55:54 +00:00
|
|
|
$(call mkhtmlwrap,$(*F))
|
2010-04-18 19:14:34 +00:00
|
|
|
|
|
|
|
|
2010-04-17 19:21:31 +00:00
|
|
|
all:
|
2010-04-19 23:53:30 +00:00
|
|
|
$(foreach project,$(PROJECTS),$(mkproject)) echo "done" ;
|
2010-04-17 19:21:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
.EXPORT_ALL_VARIABLES:
|
2010-04-20 00:19:43 +00:00
|
|
|
.SILENT: all
|