8 $(PYTHON) setup.py build
10 build: stgit/commands/cmdlist.py
12 ALL_PY = $(shell find stgit -name '*.py')
14 stgit/commands/cmdlist.py: $(ALL_PY)
15 $(PYTHON) stg-build --py-cmd-list > $@
18 $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
21 cd Documentation && $(MAKE) all
24 $(MAKE) -C Documentation install
27 $(MAKE) -C Documentation install-html
33 for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
34 stg goto $$patch && $(MAKE) test || break; \
38 for dir in Documentation t; do \
39 (cd $$dir && $(MAKE) clean); \
43 rm -f stgit/commands/*.pyc
45 rm -f stgit/commands/cmdlist.py
50 .PHONY: all build install doc install-doc install-html test test_patches clean