From 4d80d035ded2a60855ed2c7f24d759a30294c107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 14 Nov 2021 00:04:19 +0100 Subject: =?UTF-8?q?nem=C5=A1=C4=8Dina?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nem/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'nem/Makefile') 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 -- cgit v1.2.3