Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
|
1e85e7e768 | |
|
a399ec9454 |
|
@ -1,2 +1,3 @@
|
|||
.ipynb_checkpoints/
|
||||
html/
|
||||
eulerbooks.tar.gz
|
||||
|
|
17
Makefile
17
Makefile
|
@ -1,4 +1,4 @@
|
|||
.PHONY: all clean
|
||||
.PHONY: all clean dist
|
||||
|
||||
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb))
|
||||
|
||||
|
@ -11,8 +11,21 @@ clean:
|
|||
rm -r html
|
||||
|
||||
html/%.html: notebooks/%.ipynb | html
|
||||
jupyter nbconvert --to html $< --output $@ --execute --output-dir=.
|
||||
jupyter nbconvert --to html $< --output $@ --output-dir=.
|
||||
sed -i 's/$(badmathjax)/$(goodmathjax)/' $@
|
||||
|
||||
html:
|
||||
mkdir -p html
|
||||
|
||||
dist: eulerbooks.tar.gz
|
||||
|
||||
eulerbooks.tar.gz: $(HTMLS) Makefile README.md LICENSE
|
||||
rm -f $@
|
||||
mkdir eulerbooks
|
||||
cp -r html eulerbooks
|
||||
mkdir eulerbooks/notebooks
|
||||
cp notebooks/*.ipynb eulerbooks/notebooks
|
||||
cp -r notebooks/txt eulerbooks/notebooks
|
||||
cp LICENSE Makefile README.md eulerbooks
|
||||
tar -czf $@ eulerbooks
|
||||
rm -r eulerbooks
|
||||
|
|
Loading…
Reference in New Issue