X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/33ff9cdd840cfe2780acc41d88d33c8c3bc2761e..de8efe1efc4a495eca0614aa9f6c1910d5838f99:/Makefile diff --git a/Makefile b/Makefile index 288622a..53c5694 100644 --- a/Makefile +++ b/Makefile @@ -4,17 +4,10 @@ PYTHON ?= python TEST_PATCHES ?= .. -all: build +all: $(PYTHON) setup.py build -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 +install: $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force doc: @@ -26,10 +19,11 @@ install-doc: install-html: $(MAKE) -C Documentation install-html -test: build +test: + $(PYTHON) setup.py build cd t && $(MAKE) all -test_patches: build +test_patches: for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \ stg goto $$patch && $(MAKE) test || break; \ done @@ -45,6 +39,10 @@ clean: rm -f stgit/commands/cmdlist.py tags: + ctags -R stgit/* + +TAGS: ctags -e -R stgit/* -.PHONY: all build install doc install-doc install-html test test_patches clean +.PHONY: all install doc install-doc install-html test test_patches \ + clean tags TAGS