changeset 1008:85272e96b96a

Add Makefile for generating release tarballs. - test suite is run - documentation is generated and included
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 22 Aug 2005 08:46:43 +0200
parents 2e8d96e89dfc
children 1bc619b12025
files Makefile
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Mon Aug 22 08:46:43 2005 +0200
@@ -0,0 +1,23 @@
+# This Makefile is only used by developers.
+PYTHON=python
+
+all:
+	@echo "Read the file README for install instructions."
+
+clean:
+	-$(PYTHON) setup.py clean --all # ignore errors of this command
+	find . -name '*.py[co]' -exec rm -f '{}' ';'
+	make -C doc clean
+
+dist:	tests doc
+	TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py sdist --force-manifest
+
+tests:
+	cd tests && ./run-tests
+
+doc:
+	make -C doc
+
+
+.PHONY: all clean dist tests doc
+