forked from jrjohansson/scientific-python-lectures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 747 Bytes
/
Makefile
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
#
# Build a PDF with all the notebooks
#
TEMPLATE=chapter
NOTEBOOKS=Lecture-0-Scientific-Computing-with-Python.ipynb \
Lecture-1-Introduction-to-Python-Programming.ipynb \
Lecture-2-Numpy.ipynb Lecture-3-Scipy.ipynb \
Lecture-4-Matplotlib.ipynb Lecture-5-Sympy.ipynb \
Lecture-6A-Fortran-and-C.ipynb Lecture-6B-HPC.ipynb \
Lecture-7-Revision-Control-Software.ipynb
LATEXFILES=$(NOTEBOOKS:.ipynb=.tex)
.ipynb.tex:
jupyter nbconvert --to latex --template $(TEMPLATE) $<
all: latexfiles buildpdf
latexfiles:
for notebook in $(NOTEBOOKS) ; do \
jupyter nbconvert --to latex --template $(TEMPLATE) $$notebook ; \
done
buildpdf: latexfiles
pdflatex Scientific-Computing-with-Python.tex