Explorar o código

Makefile: added a dist target.

Juan RP %!s(int64=13) %!d(string=hai) anos
pai
achega
411df83ee0
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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