X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/ca454a61280aa12da9c417058900fa4b777c0109..a0689e114cdccceedc366e1bfa5be00ad62b2a31:/Makefile diff --git a/Makefile b/Makefile index 0fa5c6a..53c5694 100644 --- a/Makefile +++ b/Makefile @@ -4,20 +4,10 @@ PYTHON ?= python TEST_PATCHES ?= .. -all: build +all: $(PYTHON) setup.py build -build: stgit/commands/cmdlist.py stgit-completion.bash - -ALL_PY = $(shell find stgit -name '*.py') - -stgit/commands/cmdlist.py: $(ALL_PY) - $(PYTHON) stg-build --py-cmd-list > $@ - -stgit-completion.bash: $(ALL_PY) - $(PYTHON) stg-build --bash-completion > $@ - -install: build +install: $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force doc: @@ -29,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 @@ -53,5 +44,5 @@ tags: TAGS: ctags -e -R stgit/* -.PHONY: all build install doc install-doc install-html test test_patches \ +.PHONY: all install doc install-doc install-html test test_patches \ clean tags TAGS