Skip to content

Commit

Permalink
fix makefile rules to create directory first
Browse files Browse the repository at this point in the history
Otherwise running make under dev in a clean checkout fails because pdf
and html directories don't exist yet.
  • Loading branch information
zeldovich committed Oct 24, 2019
1 parent 95892df commit 03d36ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
pdf/%.pdf: %.md
@mkdir -p $(@D)
pandoc --toc --template template/default.latex -o $@ $<

html/%.html: %.md
@mkdir -p $(@D)
pandoc --toc -o $@ -s $< --mathjax

all: pdf html
Expand Down

0 comments on commit 03d36ba

Please sign in to comment.