Makefile: Add a top-level "make snapshot" target.
authorCarl Worth <cworth@cworth.org>
Fri, 16 Apr 2010 18:08:56 +0000 (11:08 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 16 Apr 2010 18:34:48 +0000 (11:34 -0700)
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

index aefbb9e811ff38d66ca96e6f9af33f76792ed248..cb7b865f563103ad81a629927e70e157ec75cd88 100644 (file)
@@ -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 $^ > $@