box-o-sand/Makefile

42 lines
656 B
Makefile
Raw Normal View History

2010-04-18 19:14:34 +00:00
TOP := $(PWD)
FLIXEL := $(TOP)/flixel
PYTHON := python2.6
WRAP := $(TOP)/flash_html_wrap.py
DIST := $(TOP)/dist
MXMLC := mxmlc
MXMLC_FLAGS := -sp $(FLIXEL)
2010-04-18 19:14:34 +00:00
PROJECTS = \
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
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
all:
$(foreach project,$(PROJECTS),$(mkproject)) echo "done" ;
.PHONY: all
.EXPORT_ALL_VARIABLES: