Commit 4086fa7c authored by Taddeüs Kroes's avatar Taddeüs Kroes

Tweaked docs make rules.

parent d004e022
...@@ -4,11 +4,9 @@ LATEX = TEXINPUTS=$(d):$(b): pdflatex -halt-on-error -interaction=nonstopmode \ ...@@ -4,11 +4,9 @@ LATEX = TEXINPUTS=$(d):$(b): pdflatex -halt-on-error -interaction=nonstopmode \
-output-directory $(@D) -shell-escape -output-directory $(@D) -shell-escape
REF_WARNING := "Rerun to get cross-references right" REF_WARNING := "Rerun to get cross-references right"
.PHONY: docs report bibclean .PHONY: docs bibclean
docs: report $(b)proposal.pdf $(b)presentation.pdf docs: $(b)$(REPORT).pdf $(b)proposal.pdf $(b)presentation.pdf
report: $(b)$(REPORT).pdf $(b)$(REPORT).bbl
$(b)%.pdf: $(d)%.tex $(b)%.pdf: $(d)%.tex
mkdir -p $(@D) mkdir -p $(@D)
...@@ -18,9 +16,11 @@ $(b)%.pdf: $(d)%.tex ...@@ -18,9 +16,11 @@ $(b)%.pdf: $(d)%.tex
$(LATEX) $^; \ $(LATEX) $^; \
done done
$(b)$(REPORT).pdf: $(d)$(DIAGRAMS).tex $(b)$(REPORT).pdf: $(d)$(DIAGRAMS).tex $(b)$(REPORT).bbl
$(b)$(REPORT).bbl: $(d)$(REPORT).bib $(b)$(REPORT).bbl: $(d)$(REPORT).bib
mkdir -p $(@D)
$(LATEX) $(^:.bib=.tex)
BIBINPUTS=$(d) bibtex8 $(@:.bbl=.aux) BIBINPUTS=$(d) bibtex8 $(@:.bbl=.aux)
$(LATEX) $(^:.bib=.tex) $(LATEX) $(^:.bib=.tex)
$(LATEX) $(^:.bib=.tex) $(LATEX) $(^:.bib=.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