summaryrefslogtreecommitdiffstats
path: root/nem/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2021-11-14 00:04:19 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2021-11-14 00:04:19 +0100
commit4d80d035ded2a60855ed2c7f24d759a30294c107 (patch)
tree4a782763645c04653f9ccb2e874cac0adaca812d /nem/Makefile
parentzadnji popravki pri kemiji (diff)
downloadsola-gimb-3-4d80d035ded2a60855ed2c7f24d759a30294c107.tar
sola-gimb-3-4d80d035ded2a60855ed2c7f24d759a30294c107.tar.gz
sola-gimb-3-4d80d035ded2a60855ed2c7f24d759a30294c107.tar.bz2
sola-gimb-3-4d80d035ded2a60855ed2c7f24d759a30294c107.tar.lz
sola-gimb-3-4d80d035ded2a60855ed2c7f24d759a30294c107.tar.xz
sola-gimb-3-4d80d035ded2a60855ed2c7f24d759a30294c107.tar.zst
sola-gimb-3-4d80d035ded2a60855ed2c7f24d759a30294c107.zip
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