-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
43 lines (33 loc) · 1.18 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
.PHONY: all docs dockertest
all: install README.md docs
env: environment.yml
(echo "Creating stringcompare environment..."; conda env create -f environment.yml) || (echo "Updating stringcompare environment...\n"; conda env update -f environment.yml)
install: $(shell find stringcompare -type f) setup.py pyproject.toml
pip install -e .
README.md: $(shell find stringcompare -type f) README.ipynb
jupyter nbconvert --execute --to markdown README.ipynb
m2r README.md
dockertest: dockertest.sh
sudo docker run -v $$(pwd):/stringcompare -w /stringcompare python:3.7.9 bash dockertest.sh
clean:
find . -name "*.so" -delete
find . -name "__pycache__" | xargs rm -rf
rm -rf build
rm -rf stringcompare.egg-info
rm -rf .pytest_cache
rm -rf dist
rm -rf build/
SPHINXOPTS =
SPHINXBUILD = python -msphinx
SPHINXPROJ = stringcompare
SOURCEDIR = documentation
BUILDDIR = .
docs: README.md
rm -rf docs
sphinx-apidoc -M -f -o documentation/source stringcompare stringcompare stringcompare/distance/
m2r README.md
mv README.rst documentation/README.rst
$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
mv html docs
rm -rf doctrees
touch docs/.nojekyll