Commit | Line | Data |
---|---|---|
29a8a0c9 | 1 | prefix ?= $(HOME) |
3dd412a1 CM |
2 | DESTDIR ?= / |
3 | PYTHON ?= python | |
c8a4777f | 4 | |
f26b5036 CM |
5 | TEST_PATCHES ?= .. |
6 | ||
c8a4777f PR |
7 | all: |
8 | $(PYTHON) setup.py build | |
9 | ||
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 | ||
c8a4777f PR |
19 | test: |
20 | cd t && $(MAKE) all | |
21 | ||
f26b5036 CM |
22 | test_patches: |
23 | for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \ | |
24 | stg goto $$patch && $(MAKE) test || break; \ | |
25 | done | |
26 | ||
c8a4777f | 27 | clean: |
368a44c3 | 28 | for dir in Documentation t; do \ |
c8a4777f PR |
29 | (cd $$dir && $(MAKE) clean); \ |
30 | done | |
31 | rm -rf build | |
32 | rm -f stgit/*.pyc | |
33 | rm -f stgit/commands/*.pyc | |
a7c71daf CM |
34 | rm -f TAGS |
35 | ||
36 | tags: | |
37 | ctags -e -R stgit/* | |
368a44c3 | 38 | |
722b07a6 | 39 | .PHONY: all install doc install-doc test test_patches clean |