view Makefile @ 2234:9ea93ff67a73

New make target "dist-notests" to create tarballs without running tests first.
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 09 May 2006 17:21:53 +0200
parents 3840cefa5222
children 457e4247315d
line wrap: on
line source

PREFIX=/usr/local
export PREFIX
PYTHON=python

all:
	$(PYTHON) setup.py build_ext -i

install: all
	$(PYTHON) setup.py install --home="$(PREFIX)"
	cd doc && $(MAKE) $(MFLAGS) install

clean:
	-$(PYTHON) setup.py clean --all # ignore errors of this command
	find . -name '*.py[co]' -exec rm -f '{}' ';'
	$(MAKE) -C doc clean

dist:	tests dist-notests

dist-notests:	doc
	TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py sdist --force-manifest

tests:
	cd tests && $(PYTHON) run-tests.py

test-%:
	cd tests && $(PYTHON) run-tests.py $@

doc:
	$(MAKE) -C doc


.PHONY: all clean dist dist-notests tests doc