blob: 68db469dea0491863216f46ae7bf706121a26bfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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
rm -f obnam-new-data.png obnam-store.png obnam-xfer.png obnam.seivot
|