When reading a config value, pick the last value, not the first
[stgit] / Makefile
index 288622a..0fa5c6a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,13 +7,16 @@ TEST_PATCHES ?= ..
 all: build
        $(PYTHON) setup.py build
 
-build: stgit/commands/cmdlist.py
+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
        $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
 
@@ -45,6 +48,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 build install doc install-doc install-html test test_patches \
+       clean tags TAGS