aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-04-05 14:22:00 -0700
committerCarl Worth <cworth@cworth.org>2010-04-05 14:22:00 -0700
commit04e816416fb9f5b6447896ccdb153a6f93c3e949 (patch)
tree01873c6d75297cac9b7c75d02422f96dcad79797
parent4235ef510926c8b25aeb55966c8d990c1594be64 (diff)
Makefile: Add a dist target.
To create a versioned tar file for release.
-rw-r--r--Makefile.local5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.local b/Makefile.local
index d38c673..f9fca0f 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -53,6 +53,11 @@ ifeq ($(shell cat .first-build-message),)
endif
endif
+.PHONY: dist
+dist:
+ git archive --format=tar --prefix=notmuch-$(NOTMUCH_VERSION)/ HEAD | gzip > notmuch-$(NOTMUCH_VERSION).tar.gz
+ @echo "Source is ready for release in notmuch-$(NOTMUCH_VERSION).tar.gz"
+
# The user has not set any verbosity, default to quiet mode and inform the
# user how to enable verbose compiles.
ifeq ($(V),)