From 1d6a5778af8863807a53db900fe85929c0710367 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Tue, 31 Jul 2018 22:15:06 -0700 Subject: [PATCH] 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). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1