-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (21 loc) · 688 Bytes
/
Makefile
File metadata and controls
32 lines (21 loc) · 688 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
SHELL := /bin/bash
SOURCESTEX := $(shell find doc -name '*.tex')
SOURCESLYX := $(shell find doc -name '*.lyx')
SOURCESRST := $(SOURCESTEX:.tex=.rst) $(SOURCESLYX:.lyx=.rst)
SOURCESIPYNB := $(shell find examples -name '*.ipynb')
RESULTS := $(SOURCESRST) \
$(SOURCESIPYNB:.ipynb=.rst) \
# $(SOURCESIPYNB:.ipynb=.html) \
all: $(SOURCESTEX) $(SOURCESLYX) $(SOURCESIPYNB) $(RESULTS)
sphinx-build -b html doc build/html
%.rst: %.tex
./make_rst.py $<
%.rst: %.lyx
./make_rst.py $<
%.html: %.ipynb
ipython nbconvert --to html --stdout $< > $@
%.rst: %.ipynb
./nbconvert.sh rst $<
clean:
rm -f $(RESULTS)
rm -rf examples/*_files