22 lines
510 B
Makefile
22 lines
510 B
Makefile
![]() |
# 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})))
|
||
|
|