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