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

Commit

Permalink
Add dist target
Browse files Browse the repository at this point in the history
Enable creating dist tarbals with vendored sources useful for package
builders.
  • Loading branch information
bryteise committed Mar 20, 2019
1 parent 0a6b99c commit 3e94f67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ man: $(MANPAGES)

%: docs/%.rst
rst2man.py "$<" > "$@.tmp" && mv -f "$@.tmp" "$@"

dist: vendor
$(eval TMP := $(shell mktemp -d))
cp -r . $(TMP)
(cd $(TMP); 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 3e94f67

Please sign in to comment.