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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan McGovern <alan.mcgovern@gmail.com>2012-05-17 03:56:21 +0400
committerAlan McGovern <alan.mcgovern@gmail.com>2012-05-17 04:48:45 +0400
commit707d4b4d30e30d2f67d0fa8dc361416ceb765638 (patch)
tree2da9bbaa26c773dc84a3b7836eba6551f1fc5875 /main/external/Makefile.am
parent45a0d5b038225938587c9c833001d59c541162a3 (diff)
[Build] Move submodules to monodevelop/main/externals instead of monodevelop/externals
This will simplify make dist and building from tarballs as everything will have the correct relative path.
Diffstat (limited to 'main/external/Makefile.am')
-rw-r--r--main/external/Makefile.am47
1 files changed, 47 insertions, 0 deletions
diff --git a/main/external/Makefile.am b/main/external/Makefile.am
new file mode 100644
index 0000000000..569d9c5578
--- /dev/null
+++ b/main/external/Makefile.am
@@ -0,0 +1,47 @@
+TARBALL_PATH=../../tarballs
+
+NGIT_SLN=ngit/ngit.sln
+NGIT=$(NGIT_SLN) /t:NGit
+
+CECIL_SLN=cecil/Mono.Cecil.sln
+CECIL=/property:Configuration=net_4_0_Debug $(CECIL_SLN)
+CECIL_OUTPUT=cecil/bin/net_4_0_Debug
+
+OUTPUT=../build/bin
+
+all:
+ mkdir -p $(OUTPUT)
+ xbuild $(NGIT)
+ cp ngit/bin/* $(OUTPUT)
+ xbuild $(CECIL)
+ cp $(CECIL_OUTPUT)/Mono.Cecil.dll $(OUTPUT)
+ cp $(CECIL_OUTPUT)/Mono.Cecil.dll.mdb $(OUTPUT)
+ cp $(CECIL_OUTPUT)/Mono.Cecil.Mdb.dll $(OUTPUT)
+ cp $(CECIL_OUTPUT)/Mono.Cecil.Mdb.dll.mdb $(OUTPUT)
+
+clean:
+ @if test -f $(NGIT_SLN); then xbuild $(NGIT) /t:Clean; fi
+ @if test -f $(CECIL_SLN); then xbuild $(CECIL) /t:Clean; fi
+
+install:
+
+uninstall:
+
+distdir: dist
+
+dist:
+ mkdir -p $(TARBALL_PATH)
+ @for dir in `ls .`; do \
+ if test -d $$dir; then \
+ echo Creating tarball for $$dir; \
+ cd $$dir && git archive --prefix=monodevelop-@PACKAGE_VERSION@/external/$$dir/ HEAD | bzip2 > ../$(TARBALL_PATH)/$$dir-@PACKAGE_VERSION@.tar.bz2 && cd ..; \
+ fi \
+ done
+
+dist-clean:
+ @for dir in `ls .`; do \
+ if test -d $$dir; then \
+ rm -f $(TARBALL_PATH)/$$dir.tar.bz2; \
+ fi \
+ done
+