Browse Source

Makefile: added a dist target.

Juan RP 13 năm trước cách đây
mục cha
commit
411df83ee0
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      Makefile

+ 6 - 1
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