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 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)) echo "done" ; .PHONY: all .EXPORT_ALL_VARIABLES: