From: Carl Worth Date: Fri, 16 Apr 2010 18:08:56 +0000 (-0700) Subject: Makefile: Add a top-level "make snapshot" target. X-Git-Tag: 0.2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c41a6bb786c3b57d342b77efcc40ae7b6af3020f;p=notmuch.git Makefile: Add a top-level "make snapshot" target. Useful for verifying that our tar-file creation works. The tar-file name can't easily be used as a target directly since it depends on the current git revision. --- diff --git a/Makefile.local b/Makefile.local index aefbb9e8..cb7b865f 100644 --- a/Makefile.local +++ b/Makefile.local @@ -60,7 +60,10 @@ $(TAR_FILE): tar --append -f $(TAR_FILE).tmp --transform s_^_$(PACKAGE)-$(VERSION)/_ --transform 's_.tmp$$__' version.tmp rm version.tmp gzip < $(TAR_FILE).tmp > $(TAR_FILE) - @echo "Source is ready for release in $(TAR_FILE)" + +.PHONY: snapshot +snapshot: $(TAR_FILE) + @echo "Snapshot created as $(TAR_FILE)" $(SHA1_FILE): $(TAR_FILE) sha1sum $^ > $@