You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
box-o-sand/Makefile

43 lines
669 B

TOP := $(PWD)
FLIXEL := $(TOP)/flixel
PYTHON := python2.6
WRAP := $(TOP)/flash_html_wrap.py
DIST := $(TOP)/dist
MXMLC := mxmlc
MXMLC_FLAGS := -sp $(FLIXEL)
PROJECTS = \
FlxInvaders \
FlxBloom \
FlxBlur \
FlxCollisions \
FlxTeroids \
HelloWorld \
Mode
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,$(*F))
all:
$(foreach project,$(PROJECTS),$(mkproject)) echo "done" ;
.PHONY: all
.EXPORT_ALL_VARIABLES:
.SILENT: all