Skip to content

Commit

Permalink
Use make more intelligently
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Jun 30, 2018
1 parent cfbb9ec commit 000030f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " clean to remove genrated output"
@echo " html to make standalone HTML files"
@echo " notebooks to make the Jupyter notebook-based tutorials"
@echo " notebooks to make the Jupyter notebook-based tutorials"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
Expand Down Expand Up @@ -50,7 +50,7 @@ clean:

notebooks:

make -C tutorial notebooks
make -C tutorial

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand Down
26 changes: 4 additions & 22 deletions doc/tutorial/Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
tutorials := basic.rst categorical.rst distributions.rst regression.rst axis_grids.rst aesthetics.rst color_palettes.rst
rst_files := $(patsubst %.ipynb,%.rst,$(wildcard *.ipynb))

notebooks: ${tutorials}
tutorial: ${rst_files}

basic.rst: basic.ipynb
../tools/nb_to_doc.py basic

categorical.rst: categorical.ipynb
../tools/nb_to_doc.py categorical

distributions.rst: distributions.ipynb
../tools/nb_to_doc.py distributions

regression.rst: regression.ipynb
../tools/nb_to_doc.py regression

axis_grids.rst: axis_grids.ipynb
../tools/nb_to_doc.py axis_grids

aesthetics.rst: aesthetics.ipynb
../tools/nb_to_doc.py aesthetics

color_palettes.rst: color_palettes.ipynb
../tools/nb_to_doc.py color_palettes
%.rst: %.ipynb
../tools/nb_to_doc.py $*

0 comments on commit 000030f

Please sign in to comment.