summaryrefslogtreecommitdiffstats
path: root/nem/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nem/Makefile')
-rw-r--r--nem/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/nem/Makefile b/nem/Makefile
index 3a7d223..97b50a9 100644
--- a/nem/Makefile
+++ b/nem/Makefile
@@ -1,6 +1,10 @@
SHELL := /bin/bash
-default:
+pdfs := $(subst .md,.pdf,$(wildcard *.md))
+default: $(pdfs) unregelm.pdf
+unregelm.pdf:
tr --squeeze-repeats "\\t" "," < unregelm.txt | csv2md | cat - <(tail -n 2 ferien.txt) | pandoc -f markdown -V geometry:margin=1cm /dev/stdin -o unregelm.pdf
-
-prepare:
- pip3 install csv2md
+%.pdf: %.md
+ pandoc -V geometry:margin=1cm $< -o $@
+.PHONY: clean
+clean:
+ rm -rf $(pdfs) unregelm.pdf