File: Makefile

package info (click to toggle)
pbh5tools 0.8.0%2Bgit20170929.58d54ff%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,132 kB
  • sloc: python: 1,973; makefile: 186; ansic: 86; sh: 1
file content (52 lines) | stat: -rw-r--r-- 1,288 bytes parent folder | download | duplicates (3)
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
.PHONY: doc
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: examples
	find tests -name "*.py" | xargs nosetests -v
	-find tests/cram -name "*.t" | xargs cram -v
doc:
	sphinx-apidoc -T -f -o doc src/ && cd doc && make html

examples:
	-cram -v doc/examples.t
	sed 's/^  /    /' doc/examples.t > doc/examples.md

example-rendered: examples
	pandoc doc/examples.md -o doc/examples.html
	pandoc -s -S -i -t slidy --mathjax doc/examples.md -o doc/example-slides.html

doc-clean:
	cd doc && rm -rf modules.rst pbtools.* bash5lib.* cmph5tools.* \
	bash5tools.* _templates _static _build searchindex.js objects.inv

clean: doc-clean
	rm -rf build/;\
	find . -name "*.egg-info" | xargs rm -rf;\
	find . -name "*.pyc" | xargs rm -rf;\
	rm -rf dist/
	rm -f nosetests.xml

pip-install:
	@which pip > /dev/null
	@pip freeze|grep 'pbh5tools=='>/dev/null \
      && ( pip uninstall -y pbh5tools \
        || pip uninstall -y pbtools.pbh5tools ) \
      || true
	@pip install --no-index \
          --install-option="--install-scripts=$(PREFIX)/bin" \
          ./