Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (37 sloc) 1.241 kb
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
Jump to Line
Something went wrong with that request. Please try again.