comparison Makefile @ 2240:56fddd98fef5

merge with crew.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 09 May 2006 14:40:13 -0700
parents 457e4247315d
children 76be4e66ddc8
comparison
equal deleted inserted replaced
2239:5e5adc1910ed 2240:56fddd98fef5
1 # This Makefile is only used by developers. 1 PREFIX=/usr/local
2 export PREFIX
2 PYTHON=python 3 PYTHON=python
3 4
4 all: 5 all: local build doc
6
7 local:
5 $(PYTHON) setup.py build_ext -i 8 $(PYTHON) setup.py build_ext -i
6 9
7 install: 10 build:
8 @echo "Read the file README for install instructions." 11 $(PYTHON) setup.py build
12
13 doc:
14 $(MAKE) -C doc
9 15
10 clean: 16 clean:
11 -$(PYTHON) setup.py clean --all # ignore errors of this command 17 -$(PYTHON) setup.py clean --all # ignore errors of this command
12 find . -name '*.py[co]' -exec rm -f '{}' ';' 18 find . -name '*.py[co]' -exec rm -f '{}' ';'
13 $(MAKE) -C doc clean 19 $(MAKE) -C doc clean
14 20
15 dist: tests doc 21 install: all
22 $(PYTHON) setup.py install --prefix="$(PREFIX)" --force
23 cd doc && $(MAKE) $(MFLAGS) install
24
25 install-home: all
26 $(PYTHON) setup.py install --home="$(HOME)" --force
27 cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install
28
29 dist: tests dist-notests
30
31 dist-notests: doc
16 TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py sdist --force-manifest 32 TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py sdist --force-manifest
17 33
18 tests: 34 tests:
19 cd tests && $(PYTHON) run-tests.py 35 cd tests && $(PYTHON) run-tests.py
20 36
21 test-%: 37 test-%:
22 cd tests && $(PYTHON) run-tests.py $@ 38 cd tests && $(PYTHON) run-tests.py $@
23 39
24 doc:
25 $(MAKE) -C doc
26 40
41 .PHONY: all local build doc clean install install-home dist dist-notests tests
27 42
28 .PHONY: all clean dist tests doc
29