File: Makefile

package info (click to toggle)
pbalign 0.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 920 kB
  • sloc: python: 3,477; makefile: 212; sh: 120; xml: 45
file content (60 lines) | stat: -rw-r--r-- 1,373 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
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

pylint:
	pylint --errors-only pbalign

test: pylint
	# Unit tests
	#find tests/unit -name "*.py" | xargs nosetests
	python setup.py test
	# End-to-end tests
	@echo pbalign cram tests require blasr installed.
	find tests/cram -name "*.t" | xargs cram 

h5test:
	# Tests for pre-3.0 smrtanalysis when default file formats are *.h5
	@echo pbalign h5 tests require blasr, samtoh5, loadPulses, samFilter and etc installed.
	nosetests --verbose tests/unit_h5/*.py
	find tests/cram_h5 -name "*.t" | xargs cram -v

doc:
	sphinx-apidoc -T -f -o doc pbalign/ && 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