man pages: Bugfixed man pages for --sign and --ack flags; e.g., for stg-new
[stgit] / Makefile
... / ...
CommitLineData
1prefix ?= $(HOME)
2DESTDIR ?= /
3PYTHON ?= python
4
5TEST_PATCHES ?= ..
6
7all: build
8 $(PYTHON) setup.py build
9
10build: stgit/commands/cmdlist.py stgit-completion.bash
11
12ALL_PY = $(shell find stgit -name '*.py')
13
14stgit/commands/cmdlist.py: $(ALL_PY)
15 $(PYTHON) stg-build --py-cmd-list > $@
16
17stgit-completion.bash: $(ALL_PY)
18 $(PYTHON) stg-build --bash-completion > $@
19
20install: build
21 $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
22
23doc:
24 cd Documentation && $(MAKE) all
25
26install-doc:
27 $(MAKE) -C Documentation install
28
29install-html:
30 $(MAKE) -C Documentation install-html
31
32test: build
33 cd t && $(MAKE) all
34
35test_patches: build
36 for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
37 stg goto $$patch && $(MAKE) test || break; \
38 done
39
40clean:
41 for dir in Documentation t; do \
42 (cd $$dir && $(MAKE) clean); \
43 done
44 rm -rf build
45 rm -f stgit/*.pyc
46 rm -f stgit/commands/*.pyc
47 rm -f TAGS
48 rm -f stgit/commands/cmdlist.py
49
50tags:
51 ctags -R stgit/*
52
53TAGS:
54 ctags -e -R stgit/*
55
56.PHONY: all build install doc install-doc install-html test test_patches \
57 clean tags TAGS