Compare commits
No commits in common. "1e85e7e768bcbfdbe33af2fdb0a7d0a1dc60bff9" and "3d1371aec64aac1f61f7ca8671f33e3aa235f938" have entirely different histories.
1e85e7e768
...
3d1371aec6
|
@ -1,3 +1,2 @@
|
||||||
.ipynb_checkpoints/
|
.ipynb_checkpoints/
|
||||||
html/
|
html/
|
||||||
eulerbooks.tar.gz
|
|
||||||
|
|
17
Makefile
17
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: all clean dist
|
.PHONY: all clean
|
||||||
|
|
||||||
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb))
|
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb))
|
||||||
|
|
||||||
|
@ -11,21 +11,8 @@ clean:
|
||||||
rm -r html
|
rm -r html
|
||||||
|
|
||||||
html/%.html: notebooks/%.ipynb | 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)/' $@
|
sed -i 's/$(badmathjax)/$(goodmathjax)/' $@
|
||||||
|
|
||||||
html:
|
html:
|
||||||
mkdir -p 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