From: David Griffith Date: Wed, 1 Aug 2018 05:15:06 +0000 (-0700) Subject: The dist target doesn't need hash or clean as prerequisites. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=1d6a5778af8863807a53db900fe85929c0710367;p=liskon_frotz.git The dist target doesn't need hash or clean as prerequisites. 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). --- diff --git a/Makefile b/Makefile index 7eaf9d3..f2a6886 100644 --- a/Makefile +++ b/Makefile @@ -289,7 +289,7 @@ uninstall_sfrotz: 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