From c41a6bb786c3b57d342b77efcc40ae7b6af3020f Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Fri, 16 Apr 2010 11:08:56 -0700
Subject: [PATCH] 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.
---
 Makefile.local | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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 $^ > $@
-- 
2.45.2