summaryrefslogtreecommitdiffstats
path: root/slo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'slo/Makefile')
-rw-r--r--slo/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/slo/Makefile b/slo/Makefile
index 38e2ea2..cd9bb20 100644
--- a/slo/Makefile
+++ b/slo/Makefile
@@ -1,4 +1,8 @@
SHELL := /bin/bash
-# -V geometry:margin=1cm
-default:
- pandoc saloma.md -f markdown -o saloma.pdf
+pdfs := $(subst .md,.pdf,$(wildcard *.md))
+default: $(pdfs)
+%.pdf: %.md
+ pandoc -V geometry:margin=1cm $< -o $@
+.PHONY: clean
+clean:
+ rm -rf $(pdfs)