From 28c78a07ec77e01eb720f7bd511e5c29174cc10c Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Tue, 23 Sep 2008 10:21:31 +0000
Subject: [PATCH] 4.0: added Makefile for creating the source tarball

git-svn-id: https://www.dynare.org/svn/dynare/branches/4.0@2099 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 Makefile | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..2ec924adae
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+# Makefile for creating the source tarball
+# The parent directory must be called dynare-4.x.y
+# WARNING: this makefile will destroy all your .svn subdirectories!
+
+DYNAREBASE=$(shell basename $(shell pwd))
+
+srctarball:
+	make -C preprocessor clean
+	make -C doc clean
+	rm -f matlab/dynare_m matlab/dynare_m.exe
+	rm -f mex/2007a/* mex/2007b/* mex/octave/*.mex
+	rm -f windows/*.exe
+	find -name .svn | xargs rm -rf
+	find -type f -name '*~' | xargs rm -f
+	cd ..; tar cvzf $(DYNAREBASE).tgz \
+		$(DYNAREBASE)/preprocessor \
+	  $(DYNAREBASE)/matlab \
+    $(DYNAREBASE)/doc \
+    $(DYNAREBASE)/mex
-- 
GitLab