Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2012-04-03 16:22:00 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-04-03 16:22:33 +0400
commite12e340b3eacbc44c977365b6a93712dd1ca3cab (patch)
tree6ff247add0b4eb3116bdd598b41085760d2d486a /Makefile
parent256bc7aa3a4fd02b3b5a1ae861bc99d0d3d3898d (diff)
[macdoc] Create an automated build system
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4b4b6c1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+CC = gcc
+MDTOOL = /Applications/MonoDevelop.app/Contents/MacOS/mdtool
+MDTOOL_BUILD = $(MDTOOL) build
+MONO_MAC_DLL = ../../src/MonoMac.dll
+APPLEDOCWIZARD_APP = AppleDocWizard/bin/Debug/AppleDocWizard.app/
+MACDOC_APP = bin/Debug/macdoc.app
+MONODOC_APP = $(dir $(MACDOC_APP))/MonoDoc.app
+MONODOC_ARCHIVE = MonoDoc.tar.bz2
+
+all: monomac monostub appledocwizard macdoc monodoc
+
+monomac: $(MONO_MAC_DLL)
+
+appledocwizard: monostub
+ (cd AppleDocWizard && $(MDTOOL_BUILD))
+ cp monostub $(APPLEDOCWIZARD_APP)/Contents/MacOS/AppleDocWizard
+ rm -f $(APPLEDOCWIZARD_APP)/AppleDocWizard
+ rm -f $(APPLEDOCWIZARD_APP)/Contents/MacOS/mono-version-check
+
+macdoc: appledocwizard monostub
+ $(MDTOOL_BUILD)
+ cp monostub $(MACDOC_APP)/Contents/MacOS/macdoc
+ rm -f $(MACDOC_APP)/macdoc
+ rm -f $(MACDOC_APP)/Contents/MacOS/mono-version-check
+ cp -R $(APPLEDOCWIZARD_APP) $(MACDOC_APP)/Contents/MacOS/
+
+monodoc: macdoc
+ cp -R $(MACDOC_APP) $(MONODOC_APP)
+
+dist: monodoc
+ (cd $(dir $(MONODOC_APP)) && rm -f $(MONODOC_ARCHIVE) && tar -cjf $(MONODOC_ARCHIVE) $(notdir $(MONODOC_APP)))
+
+$(MONO_MAC_DLL):
+ (cd ../../src/ && make)
+
+monostub: monostub.m
+ $(CC) -m32 $^ -o $@ -framework AppKit \ No newline at end of file