-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
54 lines (39 loc) · 1.54 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
51
52
53
54
###
# This Makefile is simply for testing and making docs, to install
# the project it should be sufficient to use python setup.py <cmd>
.PHONY: docs clean test test_py2 test_py3
venv_py2/bin/activate:
test -d venv_py2 || virtualenv venv_py2 --prompt '(fast5_py2) ' --python=python2
. $@ && pip install pip --upgrade
. $@ && pip install "setuptools<45"
. $@ && pip install -r dev_requirements.txt
. $@ && pip install -r requirements.txt;
test_py2: venv_py2/bin/activate
. $< && python setup.py nosetests
venv_py3/bin/activate:
test -d venv_py3 || virtualenv venv_py3 --prompt '(fast5_py3) ' --python=python3
. $@ && pip install pip --upgrade
. $@ && pip install -r dev_requirements.txt
. $@ && pip install -r requirements.txt;
test_py3: venv_py3/bin/activate
. $< && python setup.py nosetests
test: test_py2 test_py3
clean:
rm -rf build dist *.egg-info venv_*
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
DOCSRC = docs
docs: venv_py3/bin/activate
. $< && pip install sphinx sphinx_rtd_theme sphinx-argparse
. $< && cd $(DOCSRC) && $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
rm -rf docs/modules.rst docs/fast5_research.rst
@echo
@echo "Build finished. The HTML pages are in $(DOCSRC)/$(BUILDDIR)/html."
touch $(DOCSRC)/$(BUILDDIR)/html/.nojekyll