##// END OF EJS Templates
Just using 'make' now shows help. 'make all' doesn't perform inplace build.
Thomas Arendsen Hein -
r2244:76be4e66 default
parent child Browse files
Show More
@@ -2,7 +2,25 b' PREFIX=/usr/local'
2 export PREFIX
2 export PREFIX
3 PYTHON=python
3 PYTHON=python
4
4
5 all: local build doc
5 help:
6 @echo 'Commonly used make targets:'
7 @echo ' all - build program and documentation'
8 @echo ' install - install program and man pages to PREFIX ($(PREFIX))'
9 @echo ' install-home - install with setup.py install --home=HOME ($(HOME))'
10 @echo ' local - build C extensions for inplace usage'
11 @echo ' tests - run all tests in the automatic test suite'
12 @echo ' test-foo - run only specified tests (e.g. test-merge1)'
13 @echo ' dist - run all tests and create a source tarball in dist/'
14 @echo ' clean - remove files created by other targets'
15 @echo ' (except installed files or dist source tarball)'
16 @echo
17 @echo 'Example for a system-wide installation under /usr/local:'
18 @echo ' make all && su -c "make install" && hg version'
19 @echo
20 @echo 'Example for a local installation (usable in this directory):'
21 @echo ' make local && ./hg version'
22
23 all: build doc
6
24
7 local:
25 local:
8 $(PYTHON) setup.py build_ext -i
26 $(PYTHON) setup.py build_ext -i
@@ -16,6 +34,7 b' doc:'
16 clean:
34 clean:
17 -$(PYTHON) setup.py clean --all # ignore errors of this command
35 -$(PYTHON) setup.py clean --all # ignore errors of this command
18 find . -name '*.py[co]' -exec rm -f '{}' ';'
36 find . -name '*.py[co]' -exec rm -f '{}' ';'
37 rm -f MANIFEST mercurial/__version__.py mercurial/*.so tests/*.err
19 $(MAKE) -C doc clean
38 $(MAKE) -C doc clean
20
39
21 install: all
40 install: all
@@ -38,5 +57,5 b' test-%:'
38 cd tests && $(PYTHON) run-tests.py $@
57 cd tests && $(PYTHON) run-tests.py $@
39
58
40
59
41 .PHONY: all local build doc clean install install-home dist dist-notests tests
60 .PHONY: help all local build doc clean install install-home dist dist-notests tests
42
61
General Comments 0
You need to be logged in to leave comments. Login now