summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0fa16edd6afa7912cd96d54c635298acc06fa77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PYTHON = python

prefix = /usr/local
bindir = $(prefix)/bin

all: _obnam.so

_obnam.so: _obnammodule.c
	if $(PYTHON) setup.py build > setup.log 2>&1; then \
            rm setup.log; else cat setup.log; exit 1; fi
	cp build/lib*/*.so .
	rm -rf build

check: all
	python -m CoverageTestRunner --ignore-missing-from=without-tests
	rm .coverage
	python blackboxtest
	
clean:
	rm -f _obnam.so obnamlib/*.pyc obnamlib/plugins/*.pyc test-plugins/*.pyc
	rm -f blackboxtest.log blackboxtest-obnam.log obnam.prof