From 21cfe7f19e75113c368db34cb77c159f8b46393d Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Thu, 18 Feb 2010 15:06:19 -0500 Subject: [PATCH] adding comments, removing cruft from Makefile --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e18d2d3..4a08739 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,24 @@ -BASE = $(PWD) +# sets mxmlc to just the basename "mxmlc" +# if not overridden in command line like so: +# make MXMLC=/path/to/my/mxmlc MXMLC ?= mxmlc + + +# define all target swf paths (which don't yet exist if +# they've never been built) SWFS = $(patsubst %.mxml,%.swf,$(wildcard [0-9]*-*/*.mxml)) +# define an implicit build rule for any file matching %.swf, +# using the $< (input) and $@ (output) automatic variables %.swf : %.mxml $(MXMLC) $< -warnings -output $@ +# build all expected swf files all: $(SWFS) +# remove all swf files in the tree clean: find -name \*.swf -exec rm {} \;