File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,24 @@ SLIDES = introduction io plot processing conclusion
33
44PNGS_FROM_SVGS =$(shell find | grep \\.svg | sed -e 's/svg$$/png/g')
55
6- .PHONY : clean html pdf png
6+ NOTEBOOK_V3_FROM_NOTEBOOK =$(shell find | grep '\.ipynb$$' | grep -v '\.v3\.' | grep -v '\.ipynb_checkpoints' | sed -e 's/ipynb$$/v3.ipynb/g')
7+
8+
9+ .PHONY : clean html pdf png notebook_v3
10+
11+ #
12+ # RESOURCES
13+ #
714
815% .png : % .svg
916 inkscape -z $< -e $@
1017
18+ png : $(PNGS_FROM_SVGS )
19+
20+ #
21+ # SLIDES
22+ #
23+
1124build/html/% .html : % /index.rst png
1225 @mkdir -p build/html
1326 cd $(dir $< ) ; landslide --embed -d ../$@ index.rst
@@ -16,14 +29,26 @@ build/pdf/%.pdf: %/index.rst
1629 @mkdir -p build/pdf
1730 cd $(dir $< ) ; landslide -d ../$@ index.rst
1831
19- png : $(PNGS_FROM_SVGS )
20-
2132html : $(patsubst % ,build/html/% .html, $(SLIDES ) )
2233
2334build/pdf/slides.pdf : $(patsubst % ,build/pdf/% .pdf, $(SLIDES ) )
2435 pdfunite $^ $@
2536
2637pdf : build/pdf/slides.pdf
2738
39+ #
40+ # NOTEBOOK
41+ #
42+
43+ % .v3.ipynb : % .ipynb
44+ echo $<
45+ jupyter nbconvert --to notebook --nbformat 3 $<
46+
47+ notebook_v3 : $(NOTEBOOK_V3_FROM_NOTEBOOK )
48+
49+ #
50+ # CLEAN
51+ #
52+
2853clean :
2954 @rm -rf build
You can’t perform that action at this time.
0 commit comments