[PATCH 3 of 3] Add Makefile for generating release tarballs

Thomas Arendsen Hein thomas at intevation.de
Mon Aug 22 02:10:55 CDT 2005


- test suite is run
- documentation is generated and included


# HG changeset patch
# User Thomas Arendsen Hein <thomas at intevation.de>
# Node ID 85272e96b96a6689608918deaee27b6bf9de19c1
# Parent  2e8d96e89dfca2ff65ab16557a6172121ebab24b
Add Makefile for generating release tarballs.
- test suite is run
- documentation is generated and included

diff -r 2e8d96e89dfc -r 85272e96b96a Makefile
--- /dev/null	Mon Aug 22 06:39:44 2005
+++ b/Makefile	Mon Aug 22 06:46:43 2005
@@ -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
+


More information about the Mercurial mailing list