stgit.el: Use format-spec when formatting patch lines
[stgit] / Makefile
... / ...
CommitLineData
1prefix ?= $(HOME)
2DESTDIR ?= /
3PYTHON ?= python
4
5TEST_PATCHES ?= ..
6
7all:
8 $(PYTHON) setup.py build
9
10install:
11 $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
12
13doc:
14 cd Documentation && $(MAKE) all
15
16install-doc:
17 $(MAKE) -C Documentation install
18
19install-html:
20 $(MAKE) -C Documentation install-html
21
22test:
23 $(PYTHON) setup.py build
24 cd t && $(MAKE) all
25
26test_patches:
27 for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
28 stg goto $$patch && $(MAKE) test || break; \
29 done
30
31clean:
32 for dir in Documentation t; do \
33 (cd $$dir && $(MAKE) clean); \
34 done
35 rm -rf build
36 rm -f stgit/*.pyc
37 rm -f stgit/commands/*.pyc
38 rm -f TAGS
39 rm -f stgit/commands/cmdlist.py
40
41tags:
42 ctags -R stgit/*
43
44TAGS:
45 ctags -e -R stgit/*
46
47.PHONY: all install doc install-doc install-html test test_patches \
48 clean tags TAGS