mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-09 10:11:42 +01:00
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:
parent
5999ff8d3c
commit
c41a6bb786
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,10 @@ $(TAR_FILE):
|
||||||
tar --append -f $(TAR_FILE).tmp --transform s_^_$(PACKAGE)-$(VERSION)/_ --transform 's_.tmp$$__' version.tmp
|
tar --append -f $(TAR_FILE).tmp --transform s_^_$(PACKAGE)-$(VERSION)/_ --transform 's_.tmp$$__' version.tmp
|
||||||
rm version.tmp
|
rm version.tmp
|
||||||
gzip < $(TAR_FILE).tmp > $(TAR_FILE)
|
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)
|
$(SHA1_FILE): $(TAR_FILE)
|
||||||
sha1sum $^ > $@
|
sha1sum $^ > $@
|
||||||
|
|
Loading…
Reference in a new issue