Commit d658e5b9 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Prettified docs make rules even more...

parent 489abd25
REPORT := report REPORT := report
PDFLATEX_FLAGS = -halt-on-error -interaction=nonstopmode \ PDFLATEX_FLAGS = -halt-on-error -interaction=nonstopmode \
-output-directory "../`dirname $@`" -output-directory $(@D)
.PHONY: docs .PHONY: docs
docs: $(b)proposal.pdf $(b)presentation.pdf $(b)$(REPORT).pdf $(b)$(REPORT).bbl docs: $(b)proposal.pdf $(b)presentation.pdf $(b)$(REPORT).pdf
$(b)%.pdf: $(d)%.tex $(b)%.pdf: $(d)%.tex
mkdir -p `dirname $@` mkdir -p `dirname $@`
cd $(d); pdflatex ${PDFLATEX_FLAGS} `basename $^` TEXINPUTS=$(d): pdflatex ${PDFLATEX_FLAGS} $^
$(b)$(REPORT).bbl: $(d)$(REPORT).bib $(b)$(REPORT).bbl: $(d)$(REPORT).tex $(d)$(REPORT).bib
pdflatex ${PDFLATEX_FLAGS} $(d)$(REPORT).tex
BIBINPUTS=$(d) bibtex8 ${@:.bbl=.aux} BIBINPUTS=$(d) bibtex8 ${@:.bbl=.aux}
cd $(d); \ pdflatex ${PDFLATEX_FLAGS} $(d)$(REPORT).tex
pdflatex ${PDFLATEX_FLAGS} $(REPORT).tex; \ pdflatex ${PDFLATEX_FLAGS} $(d)$(REPORT).tex
pdflatex ${PDFLATEX_FLAGS} $(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