From 03578120ff61e87460a3803a71296eab7502fdfe Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 22 Sep 2009 14:27:17 +0200 Subject: [PATCH] Add "make dist" target. This will save a tarball of the actual HEAD. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.2