-
-
Notifications
You must be signed in to change notification settings - Fork 456
/
Makefile
47 lines (37 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
prefix ?= $(HOME)
DESTDIR ?= /
PYTHON ?= python
all:
$(PYTHON) setup.py build
install:
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
cd $(DESTDIR)$(prefix)/bin && rm -f cola && ln -s git-cola cola
doc:
cd share/doc/cola && $(MAKE) all
install-doc:
$(MAKE) -C share/doc/cola install
install-html:
$(MAKE) -C share/doc/cola install-html
uninstall:
rm -rf "$(DESTDIR)$(prefix)"/bin/git-cola \
"$(DESTDIR)$(prefix)"/bin/git-difftool \
"$(DESTDIR)$(prefix)"/bin/cola \
"$(DESTDIR)$(prefix)"/share/doc/cola \
"$(DESTDIR)$(prefix)"/share/cola \
"$(DESTDIR)$(prefix)"/share/applications/cola.desktop \
"$(DESTDIR)$(prefix)"/lib/python2.*/site-packages/cola \
"$(DESTDIR)$(prefix)"/lib/python2.*/site-packages/cola-*
test:
@env PYTHONPATH=$(CURDIR):$(CURDIR)/build/lib:$(PYTHONPATH) nosetests
clean:
for dir in share/doc/cola test; do \
(cd $$dir && $(MAKE) clean); \
done
find cola -name '*.py[co]' -print0 | xargs -0 rm -f
find cola/gui -name '[^_]*.py' -print0 | xargs -0 rm -f
find share -name '*.qm' -print0 | xargs -0 rm -f
rm -rf build tmp
rm -f tags
tags:
ctags -R cola/*.py cola/views/*.py cola/controllers/*.py
.PHONY: all install doc install-doc install-html test clean