hsm-syllabus/syllabus/VI/Makefile

51 lines
1.6 KiB
Makefile
Raw Permalink Normal View History

2024-05-25 19:43:21 +02:00
# makefile / YAML in coursebuilder und pandoc
2024-05-25 19:43:21 +02:00
name_course := "Studiengang Verwaltungsinformatik/E-Government (Bachelor of Science)"
name_author := "Hochschule Schmalkalden, Fakultät Informatik"
2024-05-25 13:28:14 +02:00
2024-05-25 19:43:21 +02:00
# settings / intern
output_path := build
2024-05-25 19:43:21 +02:00
coursebuilder := ~/Code/coursebuilder/coursebuilder
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:${name_course} -V subtitle:"Modulhandbuch" -V author:${name_author} -V footer-left:"Nichtamtliche Lesefassung"
2024-05-25 19:43:21 +02:00
# targets
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
target_nt := ${output_path}/BaVI.Notizen.pdf
2024-05-25 15:01:31 +02:00
2024-05-25 19:43:21 +02:00
# target / all
targets := ${target_mhb} ${target_so} ${target_po} ${target_nt}
2024-05-25 13:28:14 +02:00
2024-05-25 19:43:21 +02:00
# sources
source_po := PO.VI.preamble.md PO.VI.md
source_so := SO.VI.preamble.md SO.VI.md
source_nt := notes.md
2024-05-25 19:43:21 +02:00
# rules ahead
2024-05-25 15:01:31 +02:00
.PHONY: all clean
all: ${targets}
${target_so}: ${source_so}
pandoc ${pandoc_flags_eisvogel} -o $@ $^
${target_po}: ${source_po}
pandoc ${pandoc_flags_eisvogel} -o $@ $^
${target_nt}: ${source_nt}
pandoc ${pandoc_flags_eisvogel} -o $@ $^
2024-05-25 13:28:14 +02:00
${target_mhb}:
mkdir -p ${output_path}
2024-05-25 15:01:31 +02:00
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 $@
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