The "git archive" command pulls files directly from the repository in
.git/objects rather than the visible files. Therefore neither hash nor
clean are required. The notion of having the hash prerequisite came
from an earlier idea about making a file with hashes and copying that
into the tarball. Thinking it over, I decided it was better to just put the
Git stuff into the Makefile by way of sed(1).
rm -f "$(DESTDIR)$(MANDIR)/man6/dfrotz.6"
-dist: clean hash frotz-$(GIT_TAG).tar
+dist: frotz-$(GIT_TAG).tar
frotz-$(GIT_TAG).tar:
git archive --format=tar --prefix frotz-$(GIT_TAG)/ HEAD | tar xf -
sed s"/GIT_BRANCH = none/GIT_BRANCH = \"$(GIT_BRANCH)\"/" -i frotz-$(GIT_TAG)/Makefile