about summary refs log tree commit diff
diff options
context:
space:
mode:
authorxiangzhou2014-10-30 14:25:09 -0400
committerxiangzhou2014-10-30 14:25:09 -0400
commitf7c95678599fc1e21626b39864f4c10c82e53b1e (patch)
tree89d48002ef79948d8968f07b2b5180ae5fd96758
parent218f321bacab9c21ee630ad784697e6ee4a14f99 (diff)
parent60b90f95148f971cae7d65e5f6642bc8e9d29d6f (diff)
downloadpangemma-f7c95678599fc1e21626b39864f4c10c82e53b1e.tar.gz
Merge pull request #4 from wtsi-hgi/fix-tar-root
makes dist tar file not explode into ./ (fixes #3)
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 987e2e6..b26e4ca 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ WITH_LAPACK = 1
 FORCE_32BIT = 
 FORCE_DYNAMIC = 
 FORCE_FLOAT = 
+DIST_NAME = gemma-0.95alpha
 
 # --------------------------------------------------------------------
 # Edit below this line with caution
@@ -106,6 +107,14 @@ $(OBJS) : $(HDR)
 
 clean:
 	rm -rf ${SRC_DIR}/*.o ${SRC_DIR}/*~ *~ ${SRC_DIR}/*_float.*
+
+DIST_COMMON = COPYING.txt README.txt Makefile
+DIST_SUBDIRS = src doc example bin
+
 tar:
-	tar cvzf gemma-0.93.tar.gz COPYING.txt  README.txt  Makefile  src  doc  example  bin
+	mkdir -p ./$(DIST_NAME)
+	cp $(DIST_COMMON) ./$(DIST_NAME)/
+	cp -r $(DIST_SUBDIRS) ./$(DIST_NAME)/
+	tar cvzf $(DIST_NAME).tar.gz ./$(DIST_NAME)/
+	rm -r ./$(DIST_NAME)