The dist target doesn't need hash or clean as prerequisites.
authorDavid Griffith <dave@661.org>
Wed, 1 Aug 2018 05:15:06 +0000 (22:15 -0700)
committerDavid Griffith <dave@661.org>
Wed, 1 Aug 2018 05:15:06 +0000 (22:15 -0700)
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).

Makefile

index 7eaf9d3ccbaf157ef7b80e37de65c8a2752f56f6..f2a688601ef1b556b84a776e547b02f5c7581406 100644 (file)
--- 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