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

79 lines (64 sloc) 2.144 kb
prefix ?= $(HOME)
DESTDIR ?= /
PYTHON ?= python
PYTHON_VER ?= $(shell $(PYTHON) -c 'import platform; print platform.python_version()[:3]')
PYTHON_SITE ?= $(DESTDIR)$(prefix)/lib/python$(PYTHON_VER)/site-packages
COLA_VER ?= $(shell git describe --abbrev=4 --match='v*.*')
APP ?= git-cola.app
APPZIP ?= $(shell darwin/name-tarball.py)
all:
$(PYTHON) setup.py build && rm -rf build
darwin: all
rm -rf dist
$(PYTHON) darwin/py2app-setup.py py2app
$(APP): darwin
rm -rf $(APP)
mv dist/$(APP) $(CURDIR)
find $(APP) -name '*_debug*' | xargs rm -f
tar cjf $(APPZIP) $(APP)
rm -rf build dist
install:
$(PYTHON) setup.py --quiet install \
--prefix=$(prefix) \
--root=$(DESTDIR) \
--force && \
rm -f $(PYTHON_SITE)/git_cola* && \
(test -d $(PYTHON_SITE) && rmdir -p $(PYTHON_SITE) 2>/dev/null || true) && \
(cd $(DESTDIR)$(prefix)/bin && \
((! test -e cola && ln -s git-cola cola) || true)) && \
rm -rf build
doc:
$(MAKE) -C share/doc/git-cola all
html:
$(MAKE) -C share/doc/git-cola html
install-doc: install-html
$(MAKE) -C share/doc/git-cola install
install-html:
$(MAKE) -C share/doc/git-cola install-html
uninstall:
rm -rf $(DESTDIR)$(prefix)/bin/git-cola \
$(DESTDIR)$(prefix)/bin/cola \
$(DESTDIR)$(prefix)/share/applications/cola.desktop \
$(DESTDIR)$(prefix)/share/git-cola \
$(DESTDIR)$(prefix)/share/doc/git-cola
test: all
@env PYTHONPATH=$(CURDIR):$(PYTHONPATH) \
nosetests --verbose --with-doctest --with-id
coverage:
@env PYTHONPATH=$(CURDIR):$(PYTHONPATH) \
nosetests --verbose --with-doctest --with-id --with-coverage \
--cover-package=cola
clean:
for dir in share/doc/git-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 jsonpickle -name '*.py[co]' -print0 | xargs -0 rm -f
find share -name '*.qm' -print0 | xargs -0 rm -f
find simplejson -name '*.py[co]' -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 darwin git-cola.app
Jump to Line
Something went wrong with that request. Please try again.