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