eulerbooks/Makefile

15 lines
219 B
Makefile

.PHONY: all clean
HTMLS = $(patsubst %.ipynb,html/%.html,$(wildcard *.ipynb))
all: $(HTMLS)
clean:
rm -r html
html/%.html: %.ipynb | html
jupyter nbconvert --to html $< --output $@ --execute
html:
mkdir -p html