OSDN Git Service

Make cannot deal with spaces in filenames.
[joypy/Thun.git] / docs / Makefile
1 #docs      := $(wildcard *.ipynb)
2 #docs_html := $(patsubst %.ipynb,%.html,$(docs))
3
4 .PHONY: poop
5
6
7 poop: *.ipynb
8         make "$(patsubst %.ipynb,%.html,$<)"
9
10 %.html : %.ipynb
11         python -m nbconvert --to html $<
12
13 %.md : %.ipynb
14         python -m nbconvert --to markdown $<
15
16 %.rst : %.ipynb
17         python -m nbconvert --to rst $<
18