4 PYTHON_VER ?
= $(shell $(PYTHON
) -c
'import platform; print platform.python_version()[:3]')
5 PYTHON_SITE ?
= $(DESTDIR
)$(prefix)/lib
/python
$(PYTHON_VER
)/site-packages
6 COLA_VER ?
= $(shell git describe
--abbrev
=4 --match
='v*.*')
8 APPZIP ?
= $(shell darwin
/name-tarball.py
)
11 $(PYTHON
) setup.py build
14 $(PYTHON
) darwin
/py2app-setup.py py2app
18 mv
dist/$(APP
) $(CURDIR
)
19 find
$(APP
) -name
'*_debug*' | xargs
rm -f
20 tar cjf
$(APPZIP
) $(APP
)
23 $(PYTHON
) setup.py
install \
25 --prefix=$(DESTDIR
)$(prefix) \
27 rm -f
$(PYTHON_SITE
)/git_cola
* && \
28 (test -d
$(PYTHON_SITE
) && rmdir
-p
$(PYTHON_SITE
) 2>/dev
/null || true
) && \
29 (cd
$(DESTDIR
)$(prefix)/bin
&& \
30 ((! test -e cola
&& ln
-s git-cola cola
) || true
))
33 $(MAKE
) -C share
/doc
/git-cola
all
36 $(MAKE
) -C share
/doc
/git-cola html
39 $(MAKE
) -C share
/doc
/git-cola
install
42 $(MAKE
) -C share
/doc
/git-cola install-html
45 rm -rf
$(DESTDIR
)$(prefix)/bin
/git-cola \
46 $(DESTDIR
)$(prefix)/bin
/cola \
47 $(DESTDIR
)$(prefix)/share
/applications
/cola.desktop \
48 $(DESTDIR
)$(prefix)/share
/git-cola \
49 $(DESTDIR
)$(prefix)/share
/doc
/git-cola
52 all_test_flags ?
= --with-doctest
$(test_flags
)
55 @env PYTHONPATH
="$(CURDIR)":"$(PYTHONPATH)" \
56 nosetests
$(all_test_flags
)
59 @env PYTHONPATH
=$(CURDIR
):$(PYTHONPATH
) \
60 nosetests
$(all_test_flags
) \
61 --with-coverage
--cover-package
=cola
64 $(MAKE
) -C share
/doc
/git-cola
clean
65 find .
-name .noseids
-print0 | xargs
-0 rm -f
66 find .
-name
'*.py[co]' -print0 | xargs
-0 rm -f
67 find share
-name
'*.qm' -print0 | xargs
-0 rm -f
68 rm -rf cola
/builtin_version.
* build
dist tmp
tags git-cola.app
71 ctags cola
/*.py cola
/*/*.py
73 .PHONY
: all install doc install-doc install-html
test clean darwin git-cola.app