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)