stgit.el: Honor stgit-find-copies-harder in stgit-diff-range
[stgit] / Makefile
index 288622a..53c5694 100644 (file)
--- 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