summaryrefslogtreecommitdiffstats
path: root/nem/Makefile
blob: 97b50a9ee3e8b7788608012a95788af4cca3d078 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
SHELL := /bin/bash
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
%.pdf: %.md
	pandoc -V geometry:margin=1cm $< -o $@
.PHONY: clean
clean:
	rm -rf $(pdfs) unregelm.pdf