initial stab in restructuring and generating curricula
This commit is contained in:
parent
010aa5e72f
commit
4fca7c7bae
14 changed files with 172 additions and 137 deletions
38
test/Makefile
Normal file
38
test/Makefile
Normal file
|
@ -0,0 +1,38 @@
|
|||
|
||||
build_dir := build
|
||||
target_en := ${build_dir}/table.en.pdf
|
||||
target_de := ${build_dir}/table.de.pdf
|
||||
|
||||
target_flags := --template pandoc-template/eisvogel.latex
|
||||
|
||||
coursebuilder := ../coursebuilder
|
||||
|
||||
${target_en}:
|
||||
@echo "creating English version ..."
|
||||
mkdir -p ${build_dir}
|
||||
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml -l en -f fields.yaml | pandoc ${target_flags} -o ${target_en}
|
||||
|
||||
${target_de}:
|
||||
@echo "creating German version ..."
|
||||
mkdir -p ${build_dir}
|
||||
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml -l de -f fields.yaml | pandoc ${target_flags} -o ${target_de}
|
||||
|
||||
all: ${target_de} ${target_en}
|
||||
|
||||
clean:
|
||||
rm ${target_de} ${target_en}
|
||||
|
||||
# debug-template:
|
||||
# python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml -l de -f name credits goal content --template "$$name | $$credits"
|
||||
|
||||
# debug-markdown:
|
||||
# python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml -l de -f name credits
|
||||
|
||||
# debug-book:
|
||||
# python ${coursebuilder} -s schema.yaml -b book.yaml -l de
|
||||
|
||||
debug:
|
||||
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml mod.test.yaml -l de -f name credits goal content | pandoc ${target_flags} -V lang:de -o ${target_de}
|
||||
|
||||
|
||||
.PHONY: clean
|
Loading…
Add table
Add a link
Reference in a new issue