diff options
author | Carl Worth <cworth@cworth.org> | 2010-04-16 11:08:56 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-16 11:34:48 -0700 |
commit | c41a6bb786c3b57d342b77efcc40ae7b6af3020f (patch) | |
tree | 4844d4dcc6d867acb9a2fb1ad5c62ecb43b69ea8 /Makefile.local | |
parent | 5999ff8d3cce4512486353784f9dec5242196ec1 (diff) |
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.
Diffstat (limited to 'Makefile.local')
-rw-r--r-- | Makefile.local | 5 |
1 files changed, 4 insertions, 1 deletions
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 $^ > $@ |