Commit | Line | Data |
---|---|---|
29a8a0c9 | 1 | prefix ?= $(HOME) |
3dd412a1 CM |
2 | DESTDIR ?= / |
3 | PYTHON ?= python | |
c8a4777f | 4 | |
f26b5036 CM |
5 | TEST_PATCHES ?= .. |
6 | ||
0eff9b85 | 7 | all: |
c8a4777f PR |
8 | $(PYTHON) setup.py build |
9 | ||
0eff9b85 | 10 | install: |
29a8a0c9 | 11 | $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force |
c8a4777f PR |
12 | |
13 | doc: | |
368a44c3 | 14 | cd Documentation && $(MAKE) all |
c8a4777f | 15 | |
722b07a6 DW |
16 | install-doc: |
17 | $(MAKE) -C Documentation install | |
18 | ||
fd52912d DW |
19 | install-html: |
20 | $(MAKE) -C Documentation install-html | |
21 | ||
0eff9b85 CM |
22 | test: |
23 | $(PYTHON) setup.py build | |
c8a4777f PR |
24 | cd t && $(MAKE) all |
25 | ||
0eff9b85 | 26 | test_patches: |
f26b5036 CM |
27 | for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \ |
28 | stg goto $$patch && $(MAKE) test || break; \ | |
29 | done | |
30 | ||
c8a4777f | 31 | clean: |
368a44c3 | 32 | for dir in Documentation t; do \ |
c8a4777f PR |
33 | (cd $$dir && $(MAKE) clean); \ |
34 | done | |
35 | rm -rf build | |
36 | rm -f stgit/*.pyc | |
37 | rm -f stgit/commands/*.pyc | |
a7c71daf | 38 | rm -f TAGS |
33ff9cdd | 39 | rm -f stgit/commands/cmdlist.py |
a7c71daf CM |
40 | |
41 | tags: | |
ca454a61 CM |
42 | ctags -R stgit/* |
43 | ||
44 | TAGS: | |
a7c71daf | 45 | ctags -e -R stgit/* |
368a44c3 | 46 | |
0eff9b85 | 47 | .PHONY: all install doc install-doc install-html test test_patches \ |
ca454a61 | 48 | clean tags TAGS |