BASE = $(PWD) MXMLC ?= mxmlc SWFS = $(patsubst %.mxml,%.swf,$(wildcard [0-9]*-*/*.mxml)) %.swf : %.mxml $(MXMLC) $< -output $@ all: $(SWFS) clean: find -name \*.swf -exec rm {} \;