Commit 489abd25 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Prettified docs make rules.

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