Merge remote-tracking (subtree) branch 'PracticingFlixel/master'
This commit is contained in:
42
PracticingFlixel/Makefile
Normal file
42
PracticingFlixel/Makefile
Normal file
@@ -0,0 +1,42 @@
|
||||
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
|
Reference in New Issue
Block a user