chiark / gitweb /
Refuse to send empty patches
[stgit] / Makefile
index df77d9731880c02b20cd6400444e06a61364dfdf..c890b8ed0a786b0be48661c7b9837d1eb6d0ebdb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,29 @@
-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 doc && $(MAKE) all
+       cd Documentation && $(MAKE) all
 
 test:
        cd t && $(MAKE) all
 
 clean:
-       for dir in doc t; do \
+       for dir in Documentation t; do \
                (cd $$dir && $(MAKE) clean); \
        done
        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