diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/exam-n/sample/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/exam-n/sample/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/exam-n/sample/Makefile b/Master/texmf-dist/doc/latex/exam-n/sample/Makefile index ff34e72ae46..253245e5345 100644 --- a/Master/texmf-dist/doc/latex/exam-n/sample/Makefile +++ b/Master/texmf-dist/doc/latex/exam-n/sample/Makefile @@ -1,3 +1,7 @@ +%.pdf: %.tex ../exam-n.cls + TEXINPUTS=..: pdflatex $< + if grep 'Rerun to get cross' ${<:.tex=.log}; then TEXINPUTS=..: pdflatex $<; else :; fi + all: sample_exam.pdf sample_exam.pdf: numerical1-solution.pdf @@ -8,9 +12,12 @@ sample_exam_solution.tex: sample_exam.tex rm -f $@ sed '1s/documentclass/documentclass[showsolutions]/' sample_exam.tex >sample_exam_solution.tex -%.pdf: %.tex - TEXINPUTS=..: pdflatex $< - if grep 'Rerun to get cross' ${<:.tex=.log}; then TEXINPUTS=..: pdflatex $<; else :; fi +# This will depend somehow on the .dtx file in the parent directory, +# but expressing that here second-guesses how that file is actually +# generated, so skip this ('don't repeat yourself'; also, this is only +# occasionally used while testing) +../exam-n.cls: + cd ..; $(MAKE) exam-n.cls clean: - rm -f sample_exam*.pdf sample_exam_solution.tex *.log *.aux + rm -f *.pdf *.log *.aux sample_exam_solution.tex |