summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-01-15 11:09:10 +0200
committerLars Wirzenius <liw@liw.fi>2020-01-15 11:09:10 +0200
commit1bdb78c360ecf8bb6e1936cf0cf38a7112761c0a (patch)
tree4eb23245d149d84e2c29409df44d10edc607bf1c
parent951fde1718936dcbaa1fed69fb6ac51b0f5fb586 (diff)
downloadideas-1bdb78c360ecf8bb6e1936cf0cf38a7112761c0a.tar.gz
Change: also build PDFs
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8d74e4a..e332166 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,14 @@
sources = $(wildcard *.md)
htmls = $(sources:.md=.html)
+pdfs = $(sources:.md=.pdf)
-.SUFFIXES: .md .html
+.SUFFIXES: .md .html .pdf
.md.html:
pandoc --standalone --toc -o $@ $<
-all: $(htmls)
+.md.pdf:
+ pandoc --standalone --toc -o $@ $<
+
+all: $(htmls) $(pdfs)