Debian Codegraph @

texmf-dist/doc/latex/exam-n/sample/Makefile

raw symbols SCIP
1 LATEX=pdflatex
2
3 QUESTIONS=cosmo1.tex \
4 cosmo2.tex \
5 cosmo3.tex \
6 dynamical1.tex \
7 dynamical2.tex \
8 dynamical3.tex \
9 excos1.tex \
10 numerical1.tex \
11 numerical2.tex \
12 numerical3.tex
13
14 %.pdf: %.tex ../exam-n.cls
15 TEXINPUTS=..: $(LATEX) $<
16 if grep 'Rerun to get cross' ${<:.tex=.log}; then TEXINPUTS=..: $(LATEX) $<; else :; fi
17
18 all: sample_exam.pdf
19
20 sample_exam.pdf: numerical1-solution.pdf $(QUESTIONS)
21
22 sample_exam_solution.pdf: sample_exam_solution.tex $(QUESTIONS)
23
24 sample_exam_solution.tex: sample_exam.tex
25 rm -f $@
26 sed -e '1s/documentclass\[/documentclass[showsolutions,/' \
27 -e '1s/documentclass{/documentclass[showsolutions]{/' \
28 sample_exam.tex >sample_exam_solution.tex
29
30 # This will depend somehow on the .dtx file in the parent directory,
31 # but expressing that here second-guesses how that file is actually
32 # generated, so skip this ('don't repeat yourself'; also, this is only
33 # occasionally used while testing)
34 ../exam-n.cls:
35 cd ..; $(MAKE) exam-n.cls
36
37 clean:
38 rm -f *.pdf *.log *.aux sample_exam_solution.tex