-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SHELL = /bin/bash -e
all: build install
build:
python setup.py build --executable="/usr/bin/env python"
bdist:
python setup.py build --executable="/usr/bin/env python"
python setup.py bdist --formats=egg
install:
python setup.py install
develop:
python setup.py develop
test:
# Unit tests
find tests/unit -name "*.py" | xargs nosetests
# End-to-end tests
@echo pbalign cram tests require blasr installed.
find tests/cram -name "*.t" | xargs cram
doc:
sphinx-apidoc -T -f -o doc src/ && cd doc && make html
docs: doc
doc-clean:
rm -f doc/*.html
clean: doc-clean
rm -rf dist/ build/ *.egg-info
rm -rf doc/_build
find . -name "*.pyc" | xargs rm -f
rm -rf dist/
rm -f nostests.xml
pip-install:
@which pip > /dev/null
@pip freeze|grep 'pbalign=='>/dev/null \
&& ( pip uninstall -y pbalign \
|| pip uninstall -y pbtools.pbalign ) \
|| true
@pip install --no-index \
--install-option="--install-scripts=$(PREFIX)/bin" \
./
.PHONY: all build bdist install develop test doc clean