X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/3dd412a16de7140fafbf738ba99f6a02e3780c51..0b9ea6b8c230e531546ae67c797bc486605e2e54:/Makefile diff --git a/Makefile b/Makefile index 8671209..53c5694 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,33 @@ -PREFIX ?= $(HOME) +prefix ?= $(HOME) DESTDIR ?= / PYTHON ?= python +TEST_PATCHES ?= .. + all: $(PYTHON) setup.py build install: - $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) + $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force doc: cd Documentation && $(MAKE) all +install-doc: + $(MAKE) -C Documentation install + +install-html: + $(MAKE) -C Documentation install-html + test: + $(PYTHON) setup.py build cd t && $(MAKE) all +test_patches: + for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \ + stg goto $$patch && $(MAKE) test || break; \ + done + clean: for dir in Documentation t; do \ (cd $$dir && $(MAKE) clean); \ @@ -22,8 +36,13 @@ clean: rm -f stgit/*.pyc rm -f stgit/commands/*.pyc rm -f TAGS + rm -f stgit/commands/cmdlist.py tags: + ctags -R stgit/* + +TAGS: ctags -e -R stgit/* -.PHONY: all install doc test clean +.PHONY: all install doc install-doc install-html test test_patches \ + clean tags TAGS