chiark / gitweb /
Some clean-up of the branch manipulation commands
[stgit] / Makefile
index 8cd5813ae77033eb4af604be22ab56bfcd06bf08..c890b8ed0a786b0be48661c7b9837d1eb6d0ebdb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
-PREFIX = $(HOME)
-DESTDIR = /
-PYTHON = python
+PREFIX ?= $(HOME)
+DESTDIR        ?= /
+PYTHON ?= python
 
 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
@@ -21,5 +21,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