Compare commits

..

No commits in common. "main" and "1.1" have entirely different histories.
main ... 1.1

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