|
|
@@ -1,9 +1,21 @@
|
|
|
-.PHONY: docs
|
|
|
+report=report
|
|
|
|
|
|
-docs: $(b)proposal.pdf $(b)presentation.pdf $(b)report.pdf
|
|
|
+docs: $(b)proposal.pdf $(b)presentation.pdf $(b)$(report).pdf $(b)$(report).bbl
|
|
|
|
|
|
$(b)%.pdf: $(d)%.tex
|
|
|
mkdir -p `dirname $@`
|
|
|
cd $(d); \
|
|
|
pdflatex -halt-on-error -interaction=nonstopmode \
|
|
|
-output-directory "../`dirname $@`" `basename $^`
|
|
|
+
|
|
|
+$(b)$(report).bbl: $(d)$(report).bib
|
|
|
+ mkdir -p `dirname $@`
|
|
|
+ cp $(d)$(report).bib $(b)$(report).bib
|
|
|
+ cd $(b); bibtex8 $(report).aux
|
|
|
+ cd $(d); \
|
|
|
+ pdflatex -halt-on-error -interaction=nonstopmode \
|
|
|
+ -output-directory "../`dirname $@`" $(report).tex; \
|
|
|
+ pdflatex -halt-on-error -interaction=nonstopmode \
|
|
|
+ -output-directory "../`dirname $@`" $(report).tex
|
|
|
+
|
|
|
+.PHONY: docs
|