X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/368a44c3761d46b5a085215a9ed6878da4e84fa6..a2f4fe7de51cb580ca587d155f01ad569edd36ae:/Makefile diff --git a/Makefile b/Makefile index 8cd5813..e5c002a 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ -PREFIX = $(HOME) -DESTDIR = / -PYTHON = python +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 @@ -14,6 +16,11 @@ doc: 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); \ @@ -21,5 +28,9 @@ clean: rm -rf build rm -f stgit/*.pyc rm -f stgit/commands/*.pyc + rm -f TAGS + +tags: + ctags -e -R stgit/* -.PHONY: all install doc test clean +.PHONY: all install doc test test_patches clean