Fix broken use of "git archive".
authorDavid Griffith <dave@661.org>
Tue, 31 Jul 2018 09:06:31 +0000 (02:06 -0700)
committerDavid Griffith <dave@661.org>
Wed, 1 Aug 2018 04:33:47 +0000 (21:33 -0700)
Makefile

index 9b20d09d933d38bc3f4000f84102d0dd45e69387..9a83ec70cdb919a16ddd6d1521341db62b21e8d7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -295,7 +295,7 @@ uninstall_sfrotz:
 
 dist: frotz-$(GIT_TAG).tar.gz
 frotz-$(GIT_TAG).tar.gz:
-       git archive --format=tar.gz -o "frotz-$(GIT_TAG).tar.gz" "$(GIT_TAG)"
+       git archive --format=tar.gz --prefix frotz-$(GIT_TAG)/ -o "frotz-$(GIT_TAG).tar.gz" HEAD
 
 clean: $(SUB_CLEAN)
        rm -f $(SRCDIR)/*.h \