]> git.ipfire.org Git - collecty.git/commitdiff
Add "make dist" target. 0.0.1
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Sep 2009 12:27:17 +0000 (14:27 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Sep 2009 12:27:17 +0000 (14:27 +0200)
This will save a tarball of the actual HEAD.

Makefile

index bf005bc4680eae0960d660a934d3b5524f64ea48..42a17e3b324bc76ca410fd38f003a63bd9fc581e 100644 (file)
--- 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)