about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4c93606..1cb0e5a 100644
--- a/Makefile
+++ b/Makefile
@@ -17,4 +17,9 @@ install: all
 clean:
 	-rm -f mklive.sh
 
-.PHONY: all clean install
+dist:
+	@echo "Building distribution tarball for tag: v$(VERSION) ..."
+	-@git archive --format=tar --prefix=void-mklive-$(VERSION)/ \
+		v$(VERSION) | xz -9 > ~/void-mklive-$(VERSION).tar.xz
+
+.PHONY: all clean install dist