coursebuilder/test/Makefile

41 lines
1.5 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-16 17:28:23 +02:00
target_de_book := ${build_dir}/curricullum.de.pdf
2024-05-16 17:28:23 +02:00
targets := ${target_de} ${target_en} ${target_de_book}
2024-05-12 21:07:57 +02:00
target_flags := --template pandoc-template/eisvogel.latex -V table-use-row-colors:true
coursebuilder := ../coursebuilder
2024-05-12 21:07:57 +02:00
all: ${targets}
2024-05-27 13:28:22 +02:00
${target_en}: mod.cg.yaml
@echo "creating English version ..."
mkdir -p ${build_dir}
2024-05-27 13:28:22 +02:00
python ${coursebuilder} -s schema.yaml -m $^ -l en -f fields.yaml | pandoc ${target_flags} -o ${target_en}
2024-05-27 13:28:22 +02:00
${target_de}: mod.cg.yaml
@echo "creating German version ..."
mkdir -p ${build_dir}
2024-05-27 13:28:22 +02:00
python ${coursebuilder} -s schema.yaml -m $^ -l de -f fields.yaml | pandoc ${target_flags} -o ${target_de}
2024-05-27 13:28:22 +02:00
${target_de_book}: *.yaml
2024-05-22 19:45:24 +02:00
python ${coursebuilder} -s schema.yaml -b book.yaml -p --title "### {}" -l de --leftcol 25 --legacy | pandoc ${target_flags} -V toc:true -V lang:de -o ${target_de_book}
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-query:
2024-05-27 21:09:36 +02:00
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml -q "kind=='compulsory'" -qs min:credits -qc form-of-instruction -qf name id credits
debug-query-book:
python ${coursebuilder} -s schema.yaml -b book.yaml -q "kind=='compulsory'" -qs min:credits -qc form-of-instruction -qf name id credits
.PHONY: clean