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.
This commit is contained in:
Carl Worth 2010-04-16 11:08:56 -07:00
parent 5999ff8d3c
commit c41a6bb786

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