Compare commits

..

No commits in common. "1e85e7e768bcbfdbe33af2fdb0a7d0a1dc60bff9" and "3d1371aec64aac1f61f7ca8671f33e3aa235f938" have entirely different histories.

2 changed files with 2 additions and 16 deletions

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
.ipynb_checkpoints/
html/
eulerbooks.tar.gz

View File

@ -1,4 +1,4 @@
.PHONY: all clean dist
.PHONY: all clean
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb))
@ -11,21 +11,8 @@ clean:
rm -r html
html/%.html: notebooks/%.ipynb | html
jupyter nbconvert --to html $< --output $@ --output-dir=.
jupyter nbconvert --to html $< --output $@ --execute --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