summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0d3c35627ccecfb3b6778c48a917d18d56b37b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-FileCopyrightText: 2025 Gero Beckmann <orangerot@orangerot.dev>
#
# SPDX-License-Identifier: MIT

TEMPLATES = muendliche-pruefung muendliche-nachpruefung muendliche-pruefung-mathematik
FILES     = README.md main.typ lib.typ $1.typ $1.pdf

dist: $(addsuffix .tar.gz,${TEMPLATES})
	mkdir -p dist
	mv $^ dist

define make-archive
$1.tar.gz: $(addprefix $1/,${FILES})
	tar -vczf $1.tar.gz $$^
endef

%.pdf: %.typ
	typst compile $^

$(foreach template,${TEMPLATES},$(eval $(call make-archive,${template})))