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