Permalink
Browse files

Make sure html and nb are dependent on build dirs

  • Loading branch information...
jni committed Sep 15, 2017
1 parent fbe2c1d commit 86f35bde2ebac3b59d605408d2397fea50a62c32
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
@@ -59,7 +59,7 @@ $(FIGURES)/%.png: script/%.py $(FIGURES)

# %.html: How to build an HTML file from its corresponding IPython
# notebook.
$(BUILD_HTML)/%.html: $(BUILD_NB)/%.ipynb $(BUILD_HTML)/custom.css
$(BUILD_HTML)/%.html: $(BUILD_NB)/%.ipynb $(BUILD_HTML)/custom.css build_dirs
jupyter nbconvert --to html $< --stdout > $@
tools/html_image_embedder.py $@ > $@.embed && mv $@.embed $@

@@ -104,7 +104,7 @@ $(BUILD_HTML)/custom.css:

# %.ipynb: How to build an IPython notebook from a source Markdown
# file.
$(BUILD_NB)/%.ipynb: %.markdown style/elegant.mplstyle
$(BUILD_NB)/%.ipynb: %.markdown style/elegant.mplstyle build_dirs
PYTHONWARNINGS="ignore" notedown --timeout 600 --match python --run $< --output $@

# .SECONDARY: Ensure ipynb files are not deleted after being generated.

0 comments on commit 86f35bd

Please sign in to comment.