From 0eaf4d8cfd2973a98170a99410018e05fe236bca Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Thu, 18 Feb 2010 14:18:09 -0500 Subject: [PATCH] adding ipc example and drastically simplifying makefile crap --- 01-flickr/Makefile | 16 ------------- 02-shipping/Makefile | 12 ---------- 03-yahoo-weather/Makefile | 12 ---------- 04-employee-crud/Makefile | 16 ------------- 05-ipc/LocalConn.mxml | 48 +++++++++++++++++++++++++++++++++++++++ Makefile | 14 +++++------- 6 files changed, 54 insertions(+), 64 deletions(-) delete mode 100644 01-flickr/Makefile delete mode 100644 02-shipping/Makefile delete mode 100644 03-yahoo-weather/Makefile delete mode 100644 04-employee-crud/Makefile create mode 100644 05-ipc/LocalConn.mxml diff --git a/01-flickr/Makefile b/01-flickr/Makefile deleted file mode 100644 index 5f6a5da..0000000 --- a/01-flickr/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -MXMLC ?= mxmlc - - -all: FlickrRIA.swf FlickrThumbnail.swf - - -FlickrRIA.swf: FlickrRIA.mxml - $(MXMLC) FlickrRIA.mxml - - -FlickrThumbnail.swf: FlickrThumbnail.mxml - $(MXMLC) FlickrThumbnail.mxml - - -clean: - rm -f *.swf diff --git a/02-shipping/Makefile b/02-shipping/Makefile deleted file mode 100644 index 39bf31e..0000000 --- a/02-shipping/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -MXMLC ?= mxmlc - - -all: PlainText.swf - - -PlainText.swf: PlainText.mxml - $(MXMLC) PlainText.mxml - - -clean: - rm -f *.swf diff --git a/03-yahoo-weather/Makefile b/03-yahoo-weather/Makefile deleted file mode 100644 index 19062e0..0000000 --- a/03-yahoo-weather/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -MXMLC ?= mxmlc - - -all: YahooWeather.swf - - -YahooWeather.swf: YahooWeather.mxml - $(MXMLC) YahooWeather.mxml - - -clean: - rm -f *.swf diff --git a/04-employee-crud/Makefile b/04-employee-crud/Makefile deleted file mode 100644 index 3fc08a1..0000000 --- a/04-employee-crud/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -MXMLC ?= mxmlc - - -all: CRUDDynamic.swf CRUDStatic.swf - - -CRUDDynamic.swf: CRUDDynamic.mxml - $(MXMLC) CRUDDynamic.mxml - - -CRUDStatic.swf: CRUDStatic.mxml - $(MXMLC) CRUDStatic.mxml - - -clean: - rm -f *.swf diff --git a/05-ipc/LocalConn.mxml b/05-ipc/LocalConn.mxml new file mode 100644 index 0000000..31a23cb --- /dev/null +++ b/05-ipc/LocalConn.mxml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Makefile b/Makefile index 28decc3..1014228 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,10 @@ -PROJECTS = $(wildcard ./[0-9]*-*) +BASE = $(PWD) +MXMLC ?= mxmlc +SWFS = $(patsubst %.mxml,%.swf,$(wildcard [0-9]*-*/*.mxml)) -all: - @for project in $(PROJECTS) ; \ - do \ - cd $$project && $(MAKE) && cd .. ; \ - done +%.swf : %.mxml + $(MXMLC) $< -output $@ -clean: - find -name \*.swf -exec rm {} \; +all: $(SWFS)