-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
38 lines (31 loc) · 957 Bytes
/
makefile
File metadata and controls
38 lines (31 loc) · 957 Bytes
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
.PHONY: all docs dockertest
all: install README.md docs
env: pixi.toml
pixi install
install: $(shell find stringcompare -type f) setup.py pyproject.toml
pixi install
README.md: $(shell find stringcompare -type f) README.ipynb
pixi run jupyter nbconvert --execute --to markdown README.ipynb
pixi run m2r README.md
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
pixi run sphinx-apidoc -M -f -o documentation/source stringcompare stringcompare stringcompare/distance/
pixi run m2r README.md
mv README.rst documentation/README.rst
pixi run $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
mv html docs
rm -rf doctrees
touch docs/.nojekyll