Commit 4f62d702 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Aded cross-references check to make rules.

parent 45a585ba
REPORT := report
SCHEME := data/server_scheme
PDFLATEX_FLAGS = -halt-on-error -interaction=nonstopmode \
-output-directory $(@D)
-output-directory $(@D) -shell-escape
LATEX = TEXINPUTS=$(d):$(b): pdflatex $(PDFLATEX_FLAGS)
REF_WARNING := "Rerun to get cross-references right"
.PHONY: docs
.PHONY: docs report
docs: $(b)$(REPORT).pdf $(b)$(REPORT).bbl $(b)proposal.pdf $(b)presentation.pdf
docs: report $(b)proposal.pdf $(b)presentation.pdf
report: $(b)$(REPORT).pdf $(b)$(REPORT).bbl
$(b)%.pdf: $(d)%.tex
mkdir -p $(@D)
TEXINPUTS=$(d):$(b): pdflatex $(PDFLATEX_FLAGS) $^
$(LATEX) $^
@while grep $(REF_WARNING) $(@:.pdf=.log) > /dev/null; do \
echo "** Rerunning pdflatex for cross-references **"; \
$(LATEX) $^; \
done
$(b)$(REPORT).pdf: $(b)$(SCHEME).pdf
......@@ -19,5 +27,5 @@ $(b)$(SCHEME).pdf: $(d)$(SCHEME).tex
$(b)$(REPORT).bbl: $(d)$(REPORT).bib
BIBINPUTS=$(d) bibtex8 ${@:.bbl=.aux}
TEXINPUTS=$(d):$(b): pdflatex $(PDFLATEX_FLAGS) $(d)$(REPORT).tex
TEXINPUTS=$(d):$(b): pdflatex $(PDFLATEX_FLAGS) $(d)$(REPORT).tex
$(LATEX) $(d)$(REPORT).tex
$(LATEX) $(d)$(REPORT).tex
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment