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

46 lines (38 sloc) 1.099 kb
prefix ?= $(HOME)
DESTDIR ?=
SLASH ?= $(DESTDIR)/
PYTHON ?= python
all:
$(PYTHON) setup.py build
install:
# Allows for relative paths in both DESTDIR and prefix
ifeq ($(SLASH), /)
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
cd $(prefix)/bin && rm -f cola && ln -s git-cola cola
else
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(SLASH) --force
cd $(SLASH)$(prefix)/bin && rm -f cola && ln -s git-cola cola
endif
## # TODO: doc, install-doc, install-html
## doc:
## cd Documentation && $(MAKE) all
##
## install-doc:
## $(MAKE) -C Documentation install
##
## install-html:
## $(MAKE) -C Documentation install-html
test:
cd t && $(MAKE) all
clean:
## for dir in Documentation t; do \
## (cd $$dir && $(MAKE) clean); \
## done
rm -rf build tmp
find cola t -name '*.py[co]' -print0 | xargs -0 rm -f
find cola/views -name '[^_]*.py' -print0 | xargs -0 rm -f
find share -name '*.qm' -print0 | xargs -0 rm -f
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.