Makefile: Add dist target
authorReto Buerki <reet@codelabs.ch>
Mon, 13 Feb 2012 14:12:37 +0000 (15:12 +0100)
committerReto Buerki <reet@codelabs.ch>
Mon, 13 Feb 2012 15:09:31 +0000 (16:09 +0100)
.gitattributes [new file with mode: 0644]
Makefile

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..5966153
--- /dev/null
@@ -0,0 +1,2 @@
+.gitattributes export-ignore
+.gitignore export-ignore
index 10c7779..fc4294c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,12 @@ ARCH     ?= $(shell uname -m)
 
 GMAKE_OPTS = -p -R -j$(NUM_CPUS)
 
+MAJOR    = 0
+MINOR    = 1
+VERSION  = $(MAJOR).$(MINOR)
+CUDA_ADA = libcudaada-$(VERSION)
+TARBALL  = $(CUDA_ADA).tar.bz2
+
 all: build_release
 
 build_release:
@@ -54,4 +60,8 @@ clean:
        @rm -rf $(OBJDIR)
        $(MAKE) -C doc clean
 
-.PHONY: all build_tests build_release clean doc perf tests
+dist:
+       @echo "Creating release tarball $(TARBALL) ... "
+       @git archive --format=tar HEAD --prefix $(CUDA_ADA)/ | bzip2 > $(TARBALL)
+
+.PHONY: all build_tests build_release clean dist doc perf tests