X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/29a8a0c94fb61b2a907afd9a9684cff058b9498a..a0ce5562122f6536329de1dc4f3e460032e02cca:/Makefile diff --git a/Makefile b/Makefile index 9885f62..288622a 100644 --- a/Makefile +++ b/Makefile @@ -4,19 +4,32 @@ PYTHON ?= python TEST_PATCHES ?= .. -all: +all: build $(PYTHON) setup.py build -install: +build: stgit/commands/cmdlist.py + +ALL_PY = $(shell find stgit -name '*.py') + +stgit/commands/cmdlist.py: $(ALL_PY) + $(PYTHON) stg-build --py-cmd-list > $@ + +install: build $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force doc: cd Documentation && $(MAKE) all -test: +install-doc: + $(MAKE) -C Documentation install + +install-html: + $(MAKE) -C Documentation install-html + +test: build cd t && $(MAKE) all -test_patches: +test_patches: build for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \ stg goto $$patch && $(MAKE) test || break; \ done @@ -29,8 +42,9 @@ clean: rm -f stgit/*.pyc rm -f stgit/commands/*.pyc rm -f TAGS + rm -f stgit/commands/cmdlist.py tags: ctags -e -R stgit/* -.PHONY: all install doc test test_patches clean +.PHONY: all build install doc install-doc install-html test test_patches clean