Show More
@@ -2,18 +2,30 b' PREFIX=/usr/local' | |||||
2 | export PREFIX |
|
2 | export PREFIX | |
3 | PYTHON=python |
|
3 | PYTHON=python | |
4 |
|
4 | |||
5 | all: |
|
5 | all: local build doc | |
|
6 | ||||
|
7 | local: | |||
6 | $(PYTHON) setup.py build_ext -i |
|
8 | $(PYTHON) setup.py build_ext -i | |
7 |
|
9 | |||
8 | install: all |
|
10 | build: | |
9 |
$(PYTHON) setup.py |
|
11 | $(PYTHON) setup.py build | |
10 | cd doc && $(MAKE) $(MFLAGS) install |
|
12 | ||
|
13 | doc: | |||
|
14 | $(MAKE) -C doc | |||
11 |
|
15 | |||
12 | clean: |
|
16 | clean: | |
13 | -$(PYTHON) setup.py clean --all # ignore errors of this command |
|
17 | -$(PYTHON) setup.py clean --all # ignore errors of this command | |
14 | find . -name '*.py[co]' -exec rm -f '{}' ';' |
|
18 | find . -name '*.py[co]' -exec rm -f '{}' ';' | |
15 | $(MAKE) -C doc clean |
|
19 | $(MAKE) -C doc clean | |
16 |
|
20 | |||
|
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 | ||||
17 | dist: tests dist-notests |
|
29 | dist: tests dist-notests | |
18 |
|
30 | |||
19 | dist-notests: doc |
|
31 | dist-notests: doc | |
@@ -25,9 +37,6 b' tests:' | |||||
25 | test-%: |
|
37 | test-%: | |
26 | cd tests && $(PYTHON) run-tests.py $@ |
|
38 | cd tests && $(PYTHON) run-tests.py $@ | |
27 |
|
39 | |||
28 | doc: |
|
|||
29 | $(MAKE) -C doc |
|
|||
30 |
|
40 | |||
|
41 | .PHONY: all local build doc clean install install-home dist dist-notests tests | |||
31 |
|
42 | |||
32 | .PHONY: all clean dist dist-notests tests doc |
|
|||
33 |
|
General Comments 0
You need to be logged in to leave comments.
Login now