Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Fixups for make dist and extend clean for dist tarbal
Browse files Browse the repository at this point in the history
  • Loading branch information
bryteise committed Mar 20, 2019
1 parent 3e94f67 commit a7458af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

0 comments on commit a7458af

Please sign in to comment.