Mercurial > hg
comparison Makefile @ 7706:0ae7f0b312ea
use PURE option in Makefile
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sat, 24 Jan 2009 01:47:36 +0100 |
parents | 1ac4dc64cf2a |
children | 88326ee85a1b |
comparison
equal
deleted
inserted
replaced
7705:c55e68e8f256 | 7706:0ae7f0b312ea |
---|---|
1 PREFIX=/usr/local | 1 PREFIX=/usr/local |
2 export PREFIX | 2 export PREFIX |
3 PYTHON=python | 3 PYTHON=python |
4 PURE= | |
4 | 5 |
5 help: | 6 help: |
6 @echo 'Commonly used make targets:' | 7 @echo 'Commonly used make targets:' |
7 @echo ' all - build program and documentation' | 8 @echo ' all - build program and documentation' |
8 @echo ' install - install program and man pages to PREFIX ($(PREFIX))' | 9 @echo ' install - install program and man pages to PREFIX ($(PREFIX))' |
22 @echo ' make local && ./hg version' | 23 @echo ' make local && ./hg version' |
23 | 24 |
24 all: build doc | 25 all: build doc |
25 | 26 |
26 local: | 27 local: |
27 $(PYTHON) setup.py build_ext -i | 28 $(PYTHON) setup.py $(PURE) build_py -c -d . build_ext -i build_mo |
28 $(PYTHON) setup.py build_py -c -d . | |
29 $(PYTHON) setup.py build_mo | |
30 $(PYTHON) hg version | 29 $(PYTHON) hg version |
31 | 30 |
32 build: | 31 build: |
33 $(PYTHON) setup.py build | 32 $(PYTHON) setup.py $(PURE) build |
34 | 33 |
35 doc: | 34 doc: |
36 $(MAKE) -C doc | 35 $(MAKE) -C doc |
37 | 36 |
38 clean: | 37 clean: |
42 $(MAKE) -C doc clean | 41 $(MAKE) -C doc clean |
43 | 42 |
44 install: install-bin install-doc | 43 install: install-bin install-doc |
45 | 44 |
46 install-bin: build | 45 install-bin: build |
47 $(PYTHON) setup.py install --prefix="$(PREFIX)" --force | 46 $(PYTHON) setup.py $(PURE) install --prefix="$(PREFIX)" --force |
48 | 47 |
49 install-doc: doc | 48 install-doc: doc |
50 cd doc && $(MAKE) $(MFLAGS) install | 49 cd doc && $(MAKE) $(MFLAGS) install |
51 | 50 |
52 install-home: install-home-bin install-home-doc | 51 install-home: install-home-bin install-home-doc |
53 | 52 |
54 install-home-bin: build | 53 install-home-bin: build |
55 $(PYTHON) setup.py install --home="$(HOME)" --force | 54 $(PYTHON) setup.py $(PURE) install --home="$(HOME)" --force |
56 | 55 |
57 install-home-doc: doc | 56 install-home-doc: doc |
58 cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install | 57 cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install |
59 | 58 |
60 MANIFEST-doc: | 59 MANIFEST-doc: |