8 $(PYTHON) setup.py build
10 build: stgit/commands/cmdlist.py stgit-completion.bash
12 ALL_PY = $(shell find stgit -name '*.py')
14 stgit/commands/cmdlist.py: $(ALL_PY)
15 $(PYTHON) stg-build --py-cmd-list > $@
17 stgit-completion.bash: $(ALL_PY)
18 $(PYTHON) stg-build --bash-completion > $@
21 $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
24 cd Documentation && $(MAKE) all
27 $(MAKE) -C Documentation install
30 $(MAKE) -C Documentation install-html
36 for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
37 stg goto $$patch && $(MAKE) test || break; \
41 for dir in Documentation t; do \
42 (cd $$dir && $(MAKE) clean); \
46 rm -f stgit/commands/*.pyc
48 rm -f stgit/commands/cmdlist.py
56 .PHONY: all build install doc install-doc install-html test test_patches \