chiark / gitweb /
Global performance logging
[stgit] / Makefile
CommitLineData
3dd412a1
CM
1PREFIX ?= $(HOME)
2DESTDIR ?= /
3PYTHON ?= python
c8a4777f 4
f26b5036
CM
5TEST_PATCHES ?= ..
6
c8a4777f
PR
7all:
8 $(PYTHON) setup.py build
9
10install:
09e022f5 11 $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) --force
c8a4777f
PR
12
13doc:
368a44c3 14 cd Documentation && $(MAKE) all
c8a4777f
PR
15
16test:
17 cd t && $(MAKE) all
18
f26b5036
CM
19test_patches:
20 for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
21 stg goto $$patch && $(MAKE) test || break; \
22 done
23
c8a4777f 24clean:
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
33tags:
34 ctags -e -R stgit/*
368a44c3 35
f26b5036 36.PHONY: all install doc test test_patches clean