Show More
@@ -1,31 +1,33 b'' | |||||
1 | PREFIX=/usr/local |
|
1 | PREFIX=/usr/local | |
2 | export PREFIX |
|
2 | export PREFIX | |
3 | PYTHON=python |
|
3 | PYTHON=python | |
4 |
|
4 | |||
5 | all: |
|
5 | all: | |
6 | $(PYTHON) setup.py build_ext -i |
|
6 | $(PYTHON) setup.py build_ext -i | |
7 |
|
7 | |||
8 | install: all |
|
8 | install: all | |
9 | $(PYTHON) setup.py install --home="$(PREFIX)" |
|
9 | $(PYTHON) setup.py install --home="$(PREFIX)" | |
10 | cd doc && $(MAKE) $(MFLAGS) install |
|
10 | cd doc && $(MAKE) $(MFLAGS) install | |
11 |
|
11 | |||
12 | clean: |
|
12 | clean: | |
13 | -$(PYTHON) setup.py clean --all # ignore errors of this command |
|
13 | -$(PYTHON) setup.py clean --all # ignore errors of this command | |
14 | find . -name '*.py[co]' -exec rm -f '{}' ';' |
|
14 | find . -name '*.py[co]' -exec rm -f '{}' ';' | |
15 | $(MAKE) -C doc clean |
|
15 | $(MAKE) -C doc clean | |
16 |
|
16 | |||
17 |
dist: tests d |
|
17 | dist: tests dist-notests | |
|
18 | ||||
|
19 | dist-notests: doc | |||
18 | TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py sdist --force-manifest |
|
20 | TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py sdist --force-manifest | |
19 |
|
21 | |||
20 | tests: |
|
22 | tests: | |
21 | cd tests && $(PYTHON) run-tests.py |
|
23 | cd tests && $(PYTHON) run-tests.py | |
22 |
|
24 | |||
23 | test-%: |
|
25 | test-%: | |
24 | cd tests && $(PYTHON) run-tests.py $@ |
|
26 | cd tests && $(PYTHON) run-tests.py $@ | |
25 |
|
27 | |||
26 | doc: |
|
28 | doc: | |
27 | $(MAKE) -C doc |
|
29 | $(MAKE) -C doc | |
28 |
|
30 | |||
29 |
|
31 | |||
30 | .PHONY: all clean dist tests doc |
|
32 | .PHONY: all clean dist dist-notests tests doc | |
31 |
|
33 |
General Comments 0
You need to be logged in to leave comments.
Login now