From: Carl Worth Date: Mon, 5 Apr 2010 21:22:00 +0000 (-0700) Subject: Makefile: Add a dist target. X-Git-Tag: 0.1~4 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=04e816416fb9f5b6447896ccdb153a6f93c3e949 Makefile: Add a dist target. To create a versioned tar file for release. --- diff --git a/Makefile.local b/Makefile.local index d38c6733..f9fca0fa 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),)