2010-02-18 20:27:15 +00:00
|
|
|
# Makefile for building flex apps associated with
|
|
|
|
# the Adobe Flex "Geting Started" tutorial at:
|
|
|
|
# http://learn.adobe.com/wiki/display/Flex/Getting+Started
|
|
|
|
|
2010-02-19 03:02:35 +00:00
|
|
|
# sets mxmlc and compc to their respective basenames
|
2010-02-18 20:06:19 +00:00
|
|
|
# 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-19 03:02:35 +00:00
|
|
|
COMPC ?= compc
|
2010-02-24 01:11:14 +00:00
|
|
|
|
2010-02-23 04:16:04 +00:00
|
|
|
ifdef DEBUG
|
2010-02-23 04:23:35 +00:00
|
|
|
MXMLC_FLAGS ?= -warnings -strict -debug -keep-generated-actionscript
|
2010-02-23 04:16:04 +00:00
|
|
|
else
|
2010-02-23 04:23:35 +00:00
|
|
|
MXMLC_FLAGS ?= -warnings -strict
|
2010-02-23 04:16:04 +00:00
|
|
|
endif
|
2010-02-24 01:11:14 +00:00
|
|
|
MXMLC_FLAGS += -l+=$(HOME)/.local/share/flexunit
|
2010-02-18 20:06:19 +00:00
|
|
|
|
|
|
|
|
2010-02-21 05:08:12 +00:00
|
|
|
# define all dependency mxml paths and their swf path targets
|
|
|
|
# (which don't yet exist if they've never been built)
|
|
|
|
MXML = $(wildcard [0-9]*-*/*.mxml) $(wildcard custom-*/*.mxml)
|
|
|
|
SWFS = $(patsubst %.mxml,%.swf,$(MXML))
|
2010-02-18 02:48:47 +00:00
|
|
|
|
|
|
|
|
2010-02-21 03:15:26 +00:00
|
|
|
# glob up all component files as well, since changes to them
|
|
|
|
# should also prompt rebuild
|
2010-02-21 05:08:12 +00:00
|
|
|
COMPONENTS = $(wildcard [0-9]*-*/*.as) $(wildcard custom-*/*.as)
|
|
|
|
export COMPONENTS
|
|
|
|
|
|
|
|
|
|
|
|
include rules.mk
|
|
|
|
|
|
|
|
|
|
|
|
all: $(SWFS)
|
|
|
|
|
|
|
|
|
|
|
|
include targets.mk
|
|
|
|
|
|
|
|
|
|
|
|
components:
|
|
|
|
@echo $(COMPONENTS)
|
|
|
|
|
|
|
|
|
|
|
|
mxml:
|
|
|
|
@echo $(MXML)
|
2010-02-18 18:41:29 +00:00
|
|
|
|
|
|
|
|
2010-02-21 05:08:12 +00:00
|
|
|
swfs:
|
|
|
|
@echo $(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:
|
2010-02-19 03:02:35 +00:00
|
|
|
find -name \*.swf -exec rm {} \; ; \
|
|
|
|
find -name \*.swc -exec rm {} \;
|