Permalink
Browse files

Makefile: clean up Makefile

  • Loading branch information...
1 parent 3cb8b99 commit 3a11ae0916dcb7bc00e19b0090f06fc1b4f763ec @abock abock committed Feb 21, 2013
Showing with 9 additions and 11 deletions.
  1. +6 −11 Makefile
  2. +3 −0 config.mk
View
@@ -1,7 +1,7 @@
-MDROOT=$(shell stat -f%N "/Applications/Xamarin Studio.app" 2>/dev/null || echo "/Applications/MonoDevelop.app")
-MDTOOL=$(MDROOT)/Contents/MacOS/mdtool
+include config.mk
XDIRS = \
+ MarkdownViewer \
FSEvents \
NSAlert \
AnimatingViews \
@@ -29,8 +29,6 @@ XDIRS = \
GLSLShader \
GlossyClock \
ImageKitDemoStep1 \
- macdoc \
- MonoMacGameWindow \
NSTableViewBinding \
OpenGLLayer \
OpenGLViewSample \
@@ -52,16 +50,13 @@ XDIRS = \
SkinnableApp \
StillMotion \
TwoMinuteGrowler \
- VillainTracker \
- WhereIsMyMac
+ WhereIsMyMac \
+ VillainTracker
all:
- $(MAKE) -C MarkdownViewer MDTOOL="$(MDTOOL)"
for i in $(XDIRS); do (cd $$i && "$(MDTOOL)" build) || exit $$?; done
- (cd MicroSamples; make)
+ $(MAKE) -C MicroSamples
clean:
- $(MAKE) -C MarkdownViewer clean MDTOOL="$(MDTOOL)"
- -for i in $(DIRS); do (cd $$i && make clean) || exit $$?; done
-for i in $(XDIRS); do (cd $$i && rm -rf bin) || exit $$?; done
- -(cd MicroSamples; rm -rf *.exe *.mdb)
+ $(MAKE) -C MicroSamples clean
View
@@ -0,0 +1,3 @@
+MDROOT = $(shell stat -f%N "/Applications/Xamarin Studio.app" 2>/dev/null || echo "/Applications/MonoDevelop.app")
+MDROOT_ESCAPED = $(shell echo "$(MDROOT)" | sed 's| |\\ |g')
+MDTOOL = $(MDROOT)/Contents/MacOS/mdtool

0 comments on commit 3a11ae0

Please sign in to comment.