hsm-syllabus/syllabus/VI/Makefile

33 lines
1.3 KiB
Makefile
Raw Normal View History

# rule pandoc-pdf-eisvogel-mhb-de
# command = python $coursebuilder -s MHB/schema.yaml -p -t -l de --level 2 -b $in | pandoc -V lang=de $pandoc_flags_eisvogel $mhb_flags $mhb_de -o $out
2024-05-25 13:28:14 +02:00
output_path := build
2024-05-25 13:28:14 +02:00
target_mhb := ${output_path}/BaVI.MHB.pdf
target_so := ${output_path}/BaVI.SO.pdf
target_po := ${output_path}/BaVI.PO.pdf
targets := ${target_mhb} ${target_so}
coursebuilder := ~/Code/coursebuilder/coursebuilder
2024-04-25 20:45:03 +02:00
pandoc_flags_eisvogel := --filter=pandoc-crossref --template eisvogel.latex -V papersize:a4 --resource-path=.
mhb_flags := -V titlepage:true -V toc:true -V toc-own-page:true -V table-use-row-colors:true -V date:"\today" -V page-background:"images/background.pdf" -V page-background-opacity:"0.99" -V linestretch:"1.15" -V fontsize:10pt
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"
2024-05-25 13:28:14 +02:00
${target_so}:
pandoc ${pandoc_flags_eisvogel} -o ${target_so} SO.VI.preamble.md SO.VI.md
2024-05-25 13:28:14 +02:00
${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}
2024-05-25 13:28:14 +02:00
all: ${targets}
2024-05-06 18:15:43 +02:00
2024-05-25 13:28:14 +02:00
clean:
rm ${targets}
2024-05-06 18:15:43 +02:00
2024-05-25 13:28:14 +02:00
.PHONY: all clean