ui: reinstate actions from the old 'Repository' menu
[git-cola.git] / Makefile
blob2f6330ec2fa2da07fe9262dfdca4307608e21d8b
1 prefix ?= $(HOME)
2 DESTDIR ?= /
3 PYTHON ?= python
5 all:
6 $(PYTHON) setup.py build
8 install:
9 $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
10 cd $(DESTDIR)$(prefix)/bin && rm -f cola && ln -s git-cola cola
12 doc:
13 cd share/doc/cola && $(MAKE) all
15 install-doc:
16 $(MAKE) -C share/doc/cola install
18 install-html:
19 $(MAKE) -C share/doc/cola install-html
21 test:
22 cd t && $(MAKE) all
24 clean:
25 for dir in share/doc/cola t; do \
26 (cd $$dir && $(MAKE) clean); \
27 done
28 find cola -name '*.py[co]' -print0 | xargs -0 rm -f
29 find cola/views -name '[^_]*.py' -print0 | xargs -0 rm -f
30 find share -name '*.qm' -print0 | xargs -0 rm -f
31 rm -rf build tmp
32 rm -f tags
34 tags:
35 ctags -R cola/*.py cola/views/*.py cola/controllers/*.py
37 .PHONY: all install doc install-doc install-html test clean