build_dir := build target_en := ${build_dir}/table.en.pdf target_de := ${build_dir}/table.de.pdf target_de_book := ${build_dir}/curricullum.de.pdf targets := ${target_de} ${target_en} ${target_de_book} target_flags := --template pandoc-template/eisvogel.latex -V table-use-row-colors:true coursebuilder := ../coursebuilder all: ${targets} ${target_en}: mod.cg.yaml @echo "creating English version ..." mkdir -p ${build_dir} python ${coursebuilder} -s schema.yaml -m $^ -l en -f fields.yaml | pandoc ${target_flags} -o ${target_en} ${target_de}: mod.cg.yaml @echo "creating German version ..." mkdir -p ${build_dir} python ${coursebuilder} -s schema.yaml -m $^ -l de -f fields.yaml | pandoc ${target_flags} -o ${target_de} ${target_de_book}: *.yaml 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: rm -f ${targets} debug: 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: 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 debug-query-book: 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 .PHONY: clean