coursebuilder/test/Makefile

37 lines
1.1 KiB
Makefile
Raw Normal View History

build_dir := build
target_en := ${build_dir}/table.en.pdf
target_de := ${build_dir}/table.de.pdf
2024-05-12 21:07:57 +02:00
targets := ${target_de} ${target_en}
target_flags := --template pandoc-template/eisvogel.latex
coursebuilder := ../coursebuilder
2024-05-12 21:07:57 +02:00
all: ${targets}
${target_en}:
@echo "creating English version ..."
mkdir -p ${build_dir}
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml -l en -f fields.yaml | pandoc ${target_flags} -o ${target_en}
${target_de}:
@echo "creating German version ..."
mkdir -p ${build_dir}
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml -l de -f fields.yaml | pandoc ${target_flags} -o ${target_de}
clean:
2024-05-12 21:07:57 +02:00
rm -f ${targets}
debug:
2024-05-12 21:07:57 +02:00
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml mod.test.yaml -p --title "## {}" -l de -f name credits goal content
# | pandoc ${target_flags} -V lang:de -o ${target_de}
debug-legacy:
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml mod.test.yaml -p --legacy --title "## {}" -l de -f name credits goal content
# | pandoc ${target_flags} -V lang:de -o ${target_de}
.PHONY: clean