Commit | Line | Data |
---|---|---|
3dd412a1 CM |
1 | PREFIX ?= $(HOME) |
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: | |
09e022f5 | 11 | $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) --force |
c8a4777f PR |
12 | |
13 | doc: | |
368a44c3 | 14 | cd Documentation && $(MAKE) all |
c8a4777f PR |
15 | |
16 | test: | |
17 | cd t && $(MAKE) all | |
18 | ||
f26b5036 CM |
19 | test_patches: |
20 | for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \ | |
21 | stg goto $$patch && $(MAKE) test || break; \ | |
22 | done | |
23 | ||
c8a4777f | 24 | clean: |
368a44c3 | 25 | for dir in Documentation t; do \ |
c8a4777f PR |
26 | (cd $$dir && $(MAKE) clean); \ |
27 | done | |
28 | rm -rf build | |
29 | rm -f stgit/*.pyc | |
30 | rm -f stgit/commands/*.pyc | |
a7c71daf CM |
31 | rm -f TAGS |
32 | ||
33 | tags: | |
34 | ctags -e -R stgit/* | |
368a44c3 | 35 | |
f26b5036 | 36 | .PHONY: all install doc test test_patches clean |