From a7458af4d2e5b9342a2fbc4a3546bccda3ea9628 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Wed, 20 Mar 2019 14:48:00 -0700 Subject: [PATCH] Fixups for make dist and extend clean for dist tarbal --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 694d138..619ee05 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ install: all install -D -m 00644 swupd-3rd-party.1 $(DESTDIR)/usr/share/man/man1/swupd-3rd-party.1 clean: - rm -f swupd-3rd-party 3rd-party-post + rm -f swupd-3rd-party 3rd-party-post clr-user-bundles-*.tar.xz rm -fr vendor vendor: go.mod @@ -36,8 +36,8 @@ man: $(MANPAGES) dist: vendor $(eval TMP := $(shell mktemp -d)) - cp -r . $(TMP) - (cd $(TMP); git reset --hard $(VERSION); git clean -xf; rm -fr .git .gitignore) + cp -r . $(TMP)/clr-user-bundles-$(VERSION) + (cd $(TMP)/clr-user-bundles-$(VERSION); git reset --hard $(VERSION); git clean -xf; rm -fr .git .gitignore) tar -C $(TMP) -cf clr-user-bundles-$(VERSION).tar . xz clr-user-bundles-$(VERSION).tar rm -fr $(TMP)