stgit.el: Do not recurse into unknown directories after "t u"
[stgit] / Makefile
CommitLineData
29a8a0c9 1prefix ?= $(HOME)
3dd412a1
CM
2DESTDIR ?= /
3PYTHON ?= python
c8a4777f 4
f26b5036
CM
5TEST_PATCHES ?= ..
6
0eff9b85 7all:
c8a4777f
PR
8 $(PYTHON) setup.py build
9
0eff9b85 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
0eff9b85
CM
22test:
23 $(PYTHON) setup.py build
c8a4777f
PR
24 cd t && $(MAKE) all
25
0eff9b85 26test_patches:
f26b5036
CM
27 for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
28 stg goto $$patch && $(MAKE) test || break; \
29 done
30
c8a4777f 31clean:
368a44c3 32 for dir in Documentation t; do \
c8a4777f
PR
33 (cd $$dir && $(MAKE) clean); \
34 done
35 rm -rf build
36 rm -f stgit/*.pyc
37 rm -f stgit/commands/*.pyc
a7c71daf 38 rm -f TAGS
33ff9cdd 39 rm -f stgit/commands/cmdlist.py
a7c71daf
CM
40
41tags:
ca454a61
CM
42 ctags -R stgit/*
43
44TAGS:
a7c71daf 45 ctags -e -R stgit/*
368a44c3 46
0eff9b85 47.PHONY: all install doc install-doc install-html test test_patches \
ca454a61 48 clean tags TAGS