OSDN Git Service

I narrowed down the bug.
[joypy/Thun.git] / docs / Makefile
1 docs      = $(wildcard *.ipynb)
2 docs_html = $(patsubst %.ipynb,%.html,$(docs))
3 docs_md   = $(patsubst %.ipynb,%.md,$(docs))
4 docs_rst  = $(patsubst %.ipynb,%.rst,$(docs))
5
6 .PHONY: clean sdist test docs
7
8
9 all: $(docs_html) $(docs_md) $(docs_rst)
10
11
12 clean:
13         $(RM) -v $(docs_html) $(docs_md) $(docs_rst)
14
15
16 $(docs_html): %.html : %.ipynb
17         python -m nbconvert --to html $<
18
19 $(docs_md): %.md : %.ipynb
20         python -m nbconvert --to markdown $<
21
22 $(docs_rst): %.rst : %.ipynb
23         python -m nbconvert --to rst $<
24
25
26 move_us = Derivatives_of_Regular_Expressions.rst Generator_Programs.rst Newton-Raphson.rst Ordered_Binary_Trees.rst Quadratic.rst Recursion_Combinators.rst Replacing.rst The_Four_Operations.rst Treestep.rst TypeChecking.rst Types.rst Zipper.rst
27
28 mov: $(move_us)
29         cp -v $? ./sphinx_docs/notebooks/
30