Mercurial > hg > mercurial-crew-with-dirclash
comparison Makefile @ 2527:c51fad25e59e
Split installation targets into install-bin and install-doc.
install-bin will only install the program, and install-doc will install
the documentation. The main install target still installs both.
author | Sascha Wilde <wilde@sha-bang.de> |
---|---|
date | Tue, 27 Jun 2006 09:57:06 +0200 |
parents | 76be4e66ddc8 |
children | 2ab464771b7d 1a7794525c2b |
comparison
equal
deleted
inserted
replaced
2526:37785f986260 | 2527:c51fad25e59e |
---|---|
35 -$(PYTHON) setup.py clean --all # ignore errors of this command | 35 -$(PYTHON) setup.py clean --all # ignore errors of this command |
36 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 | 37 rm -f MANIFEST mercurial/__version__.py mercurial/*.so tests/*.err |
38 $(MAKE) -C doc clean | 38 $(MAKE) -C doc clean |
39 | 39 |
40 install: all | 40 install: install-bin install-doc |
41 | |
42 install-bin: build | |
41 $(PYTHON) setup.py install --prefix="$(PREFIX)" --force | 43 $(PYTHON) setup.py install --prefix="$(PREFIX)" --force |
44 | |
45 install-doc: doc | |
42 cd doc && $(MAKE) $(MFLAGS) install | 46 cd doc && $(MAKE) $(MFLAGS) install |
43 | 47 |
44 install-home: all | 48 install-home: install-home-bin install-home-doc |
49 | |
50 install-home-bin: build | |
45 $(PYTHON) setup.py install --home="$(HOME)" --force | 51 $(PYTHON) setup.py install --home="$(HOME)" --force |
52 | |
53 install-home-doc: doc | |
46 cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install | 54 cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install |
47 | 55 |
48 dist: tests dist-notests | 56 dist: tests dist-notests |
49 | 57 |
50 dist-notests: doc | 58 dist-notests: doc |
55 | 63 |
56 test-%: | 64 test-%: |
57 cd tests && $(PYTHON) run-tests.py $@ | 65 cd tests && $(PYTHON) run-tests.py $@ |
58 | 66 |
59 | 67 |
60 .PHONY: help all local build doc clean install install-home dist dist-notests tests | 68 .PHONY: help all local build doc clean install install-bin install-doc \ |
61 | 69 install-home install-home-bin install-home-doc dist dist-notests tests |