X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/09e022f5a3228abd81944f478ba4e6f1861406bd..575bbdaeb6b8fae0eef19672d288361282b83fb4:/Makefile diff --git a/Makefile b/Makefile index c890b8e..9322fe0 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,32 @@ -PREFIX ?= $(HOME) +prefix ?= $(HOME) DESTDIR ?= / PYTHON ?= python +TEST_PATCHES ?= .. + all: $(PYTHON) setup.py build install: - $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) --force + $(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: 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); \ @@ -26,4 +39,4 @@ clean: tags: ctags -e -R stgit/* -.PHONY: all install doc test clean +.PHONY: all install doc install-doc install-html test test_patches clean