2024-05-29 20:02:48 +02:00
|
|
|
# debug make file for testing
|
2024-05-09 22:57:10 +02:00
|
|
|
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-09 22:57:10 +02:00
|
|
|
|
2024-05-16 17:28:23 +02:00
|
|
|
targets := ${target_de} ${target_en} ${target_de_book}
|
2024-05-12 21:07:57 +02:00
|
|
|
|
2024-05-16 23:15:27 +02:00
|
|
|
target_flags := --template pandoc-template/eisvogel.latex -V table-use-row-colors:true
|
2024-05-09 22:57:10 +02:00
|
|
|
|
|
|
|
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
|
2024-05-09 22:57:10 +02:00
|
|
|
@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-09 22:57:10 +02:00
|
|
|
|
2024-05-27 13:28:22 +02:00
|
|
|
${target_de}: mod.cg.yaml
|
2024-05-09 22:57:10 +02:00
|
|
|
@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-09 22:57:10 +02:00
|
|
|
|
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}
|
2024-05-09 22:57:10 +02:00
|
|
|
|
2024-05-29 20:02:48 +02:00
|
|
|
clean:
|
2024-05-12 21:07:57 +02:00
|
|
|
rm -f ${targets}
|
2024-05-09 22:57:10 +02:00
|
|
|
|
|
|
|
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}
|
2024-05-09 22:57:10 +02:00
|
|
|
|
2024-05-16 23:15:27 +02:00
|
|
|
debug-query:
|
2024-05-28 08:03:52 +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 credits form-of-exam -ql Modulname Kreditpunkte Prüfungsart -qt quatsch
|
2024-05-27 21:09:36 +02:00
|
|
|
|
|
|
|
debug-query-book:
|
2024-05-28 08:03:52 +02:00
|
|
|
python ${coursebuilder} -s schema.yaml -b book.yaml -q "kind=='compulsory'" -qs min:credits -qc form-of-instruction -qf name credits form-of-instruction -ql Modulname Kürzel Kreditpunkte
|
2024-05-09 22:57:10 +02:00
|
|
|
|
2025-03-17 14:37:45 +01:00
|
|
|
debug-query-full:
|
|
|
|
python ${coursebuilder} -s ~/Documents/MaACS/MHB/schema.yaml -b ~/Documents/MaACS/MHB/book.yaml -q "kind=='compulsory_elective'" -qc form-of-instruction -qf name form-of-instruction.sum credits term -ql Modulname SWS Kreditpunkte Semester
|
|
|
|
|
2024-05-29 20:02:48 +02:00
|
|
|
.PHONY: clean
|