2010-02-18 20:06:19 +00:00
|
|
|
# sets mxmlc to just the basename "mxmlc"
|
|
|
|
# if not overridden in command line like so:
|
|
|
|
# make MXMLC=/path/to/my/mxmlc
|
2010-02-18 19:18:09 +00:00
|
|
|
MXMLC ?= mxmlc
|
2010-02-18 20:06:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
# define all target swf paths (which don't yet exist if
|
|
|
|
# they've never been built)
|
2010-02-18 19:18:09 +00:00
|
|
|
SWFS = $(patsubst %.mxml,%.swf,$(wildcard [0-9]*-*/*.mxml))
|
2010-02-18 02:48:47 +00:00
|
|
|
|
|
|
|
|
2010-02-18 20:06:19 +00:00
|
|
|
# define an implicit build rule for any file matching %.swf,
|
|
|
|
# using the $< (input) and $@ (output) automatic variables
|
2010-02-18 19:18:09 +00:00
|
|
|
%.swf : %.mxml
|
2010-02-18 19:23:01 +00:00
|
|
|
$(MXMLC) $< -warnings -output $@
|
2010-02-18 18:41:29 +00:00
|
|
|
|
|
|
|
|
2010-02-18 20:06:19 +00:00
|
|
|
# build all expected swf files
|
2010-02-18 19:18:09 +00:00
|
|
|
all: $(SWFS)
|
2010-02-18 19:18:41 +00:00
|
|
|
|
|
|
|
|
2010-02-18 20:06:19 +00:00
|
|
|
# remove all swf files in the tree
|
2010-02-18 19:18:41 +00:00
|
|
|
clean:
|
|
|
|
find -name \*.swf -exec rm {} \;
|