From: Michael Tremer Date: Tue, 22 Sep 2009 12:27:17 +0000 (+0200) Subject: Add "make dist" target. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03578120ff61e87460a3803a71296eab7502fdfe;p=telemetry.git Add "make dist" target. This will save a tarball of the actual HEAD. --- diff --git a/Makefile b/Makefile index bf005bc..42a17e3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ NAME = collecty +VERSION = 0.0.1 DESTDIR = PYTHON_VER := $(shell python --version 2>&1 | awk '{ print $$NF }') @@ -7,6 +8,10 @@ PYTHON_DIR = $(DESTDIR)/usr/lib/python$(PYTHON_VER)/site-packages/$(NAME)/ all: +dist: + git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | gzip -9 \ + > $(NAME)-$(VERSION).tar.gz + install: -mkdir -pv $(PYTHON_DIR) cp -rvf collecty $(PYTHON_DIR)