Makefile: archive should not run git tag

This causes 'make vm' to tag the current commit as 'HEAD' which causes
no end of confusion.

Related: rhbz#1770193
This commit is contained in:
Brian C. Lane 2019-11-14 14:28:50 -08:00
parent a432c71c95
commit 626dfbd4ea

View File

@ -80,7 +80,7 @@ tag:
docs: docs:
$(MAKE) -C docs apidoc html $(MAKE) -C docs apidoc html
archive: tag archive:
@git archive --format=tar --prefix=$(PKGNAME)-$(VERSION)/ $(TAG) > $(PKGNAME)-$(VERSION).tar @git archive --format=tar --prefix=$(PKGNAME)-$(VERSION)/ $(TAG) > $(PKGNAME)-$(VERSION).tar
@gzip -f $(PKGNAME)-$(VERSION).tar @gzip -f $(PKGNAME)-$(VERSION).tar
@echo "The archive is in $(PKGNAME)-$(VERSION).tar.gz" @echo "The archive is in $(PKGNAME)-$(VERSION).tar.gz"