chiark / gitweb /
Merge branch 'stable'
[stgit] / Makefile
1 PREFIX  ?= $(HOME)
2 DESTDIR ?= /
3 PYTHON  ?= python
4
5 TEST_PATCHES ?= ..
6
7 all:
8         $(PYTHON) setup.py build
9
10 install:
11         $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) --force
12
13 doc:
14         cd Documentation && $(MAKE) all
15
16 test:
17         cd t && $(MAKE) all
18
19 test_patches:
20         for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
21                 stg goto $$patch && $(MAKE) test || break; \
22         done
23
24 clean:
25         for dir in Documentation t; do \
26                 (cd $$dir && $(MAKE) clean); \
27         done
28         rm -rf build
29         rm -f stgit/*.pyc
30         rm -f stgit/commands/*.pyc
31         rm -f TAGS
32
33 tags:
34         ctags -e -R stgit/*
35
36 .PHONY: all install doc test test_patches clean