box-o-sand/Makefile

34 lines
952 B
Makefile
Raw Normal View History

# Makefile for building flex apps associated with
# the Adobe Flex "Geting Started" tutorial at:
# http://learn.adobe.com/wiki/display/Flex/Getting+Started
include rules.mk
# sets mxmlc and compc to their respective basenames
# if not overridden in command line like so:
# make MXMLC=/path/to/my/mxmlc
MXMLC ?= mxmlc
COMPC ?= compc
# define all target swf paths (which don't yet exist if
# they've never been built)
SWFS = $(patsubst %.mxml,%.swf,$(wildcard [0-9]*-*/*.mxml))
SWFS += $(patsubst %.mxml,%.swf,$(wildcard custom-*/*.mxml))
# glob up all component files as well, since changes to them
# should also prompt rebuild
COMPONENTS = $(patsubst %.mxml,%.swf,$(wildcard [0-9]*-*/*.as))
COMPONENTS += $(patsubst %.mxml,%.swf,$(wildcard custom-*/*.as))
2010-02-18 18:41:29 +00:00
# build all expected swf and swc files
all: $(SWFS) $(COMPONENTS)
2010-02-18 19:18:41 +00:00
# remove all swf files in the tree
2010-02-18 19:18:41 +00:00
clean:
find -name \*.swf -exec rm {} \; ; \
find -name \*.swc -exec rm {} \;