diff options
author | Gustav Eek <gustav.eek@fripost.org> | 2019-09-01 13:10:26 +0200 |
---|---|---|
committer | Gustav Eek <gustav.eek@fripost.org> | 2019-09-01 13:10:26 +0200 |
commit | 5e0cc1e9d0869a02ef0e6cbd6dc6f1fb8daaa8ee (patch) | |
tree | a50e26ed4a19d9e0c66251c81a2432cd372618dc /trivia/sensommarfest/Makefile | |
parent | 893634662574567f867559ffe05aa827dee17dd9 (diff) |
[trivia] Sensommarfest Inital full quiz added
Diffstat (limited to 'trivia/sensommarfest/Makefile')
-rw-r--r-- | trivia/sensommarfest/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/trivia/sensommarfest/Makefile b/trivia/sensommarfest/Makefile new file mode 100644 index 0000000..5816045 --- /dev/null +++ b/trivia/sensommarfest/Makefile @@ -0,0 +1,30 @@ + +ALL = \ + questions.pdf \ + answers.pdf \ + form.pdf + +TMP = tmp + +all: $(ALL) + +answers.pdf questions.pdf: trivia.mdwn + mkdir -p $(TMP) + cat $< | sed -f sed/$(basename $@).sed > $(TMP)/$(basename $@).mdwn + cat $(TMP)/$(basename $@).mdwn | pandoc -s -f markdown -t latex \ + -N -H tex/header.tex -V classoption=a6paper,11pt -V pagestyle=empty \ + | sed -f sed/latex.sed -f sed/$(basename $@).sed > $(TMP)/$(basename $@)-small.tex + pdflatex -output-directory $(TMP) -jobname $(basename $@)-small < $(TMP)/$(basename $@)-small.tex + cat tex/$(basename $@).tex \ + | pdflatex -output-directory $(TMP) -jobname $(basename $@) + mv $(TMP)/$@ $@ + +form.pdf: tex/form.tex + mkdir -p $(TMP) + pdflatex -output-directory $(TMP) -jobname $(basename $@) < $< + mv $(TMP)/$@ $@ + + +clean: + rm -f $(ALL) + rm -fr $(TMP) |