This commit is contained in:
Hartmut Seichter 2024-05-25 15:01:31 +02:00
parent 3828fcc079
commit 63e2f263f3
5 changed files with 321 additions and 823 deletions

View file

@ -8,8 +8,11 @@ output_path := build
target_mhb := ${output_path}/BaVI.MHB.pdf
target_so := ${output_path}/BaVI.SO.pdf
target_po := ${output_path}/BaVI.PO.pdf
source_po := PO.VI.preamble.md PO.VI.md
source_so := SO.VI.preamble.md SO.VI.md
targets := ${target_mhb} ${target_so}
targets := ${target_mhb} ${target_so} ${target_po}
coursebuilder := ~/Code/coursebuilder/coursebuilder
pandoc_flags_eisvogel := --filter=pandoc-crossref --template eisvogel.latex -V papersize:a4 --resource-path=.
@ -18,16 +21,20 @@ mhb_flags := -V titlepage:true -V toc:true -V toc-own-page:true -V table-use-row
mhb_meta_de := -V lang=de -V title:"Studiengang Verwaltungsinformatik/E-Government (Bachelor of Science)" -V subtitle:"Modulhandbuch" -V author:"Hochschule Schmalkalden, Fakultät Informatik" -V footer-left:"Nichtamtliche Lesefassung"
${target_so}:
pandoc ${pandoc_flags_eisvogel} -o ${target_so} SO.VI.preamble.md SO.VI.md
.PHONY: all clean
all: ${targets}
${target_so}: ${source_so}
pandoc ${pandoc_flags_eisvogel} -o $@ $^
${target_po}: ${source_po}
pandoc ${pandoc_flags_eisvogel} -o $@ $^
${target_mhb}:
mkdir -p ${output_path}
python ${coursebuilder} -s MHB/schema.yaml -p -t -l de --level 2 -b MHB/book.yaml | pandoc ${pandoc_flags_eisvogel} ${mhb_flags} ${mhb_meta_de} -o ${target_mhb}
all: ${targets}
python ${coursebuilder} -s MHB/schema.yaml -p -t -l de --level 2 -b MHB/book.yaml | pandoc ${pandoc_flags_eisvogel} ${mhb_flags} ${mhb_meta_de} -o $@
clean:
rm ${targets}
.PHONY: all clean