X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=Report%2FMakefile;fp=Report%2FMakefile;h=6801ad0af26a344018f3c31262b822dc6ab0f9a7;hb=99713a971023a195e42cf9e63a6b30e3e87d9880;hp=0000000000000000000000000000000000000000;hpb=532451379ad5783e3d7a55e40fb99e78a61fb278;p=matthijs%2Fprojects%2Finternship.git diff --git a/Report/Makefile b/Report/Makefile new file mode 100755 index 0000000..6801ad0 --- /dev/null +++ b/Report/Makefile @@ -0,0 +1,20 @@ +all: Report.dvi + +REPEAT_TEXT = 'Rerun to get cross-references right' + +%.pdf: %.dvi + dvipdf $(basename $@) + +%.ps: %.svg + inkscape $(addsuffix .svg,$(basename $@)) --export-ps=$@ + +Report.dvi: *.tex Front/*.tex Main/*.tex Main/*/*.tex Report.bib + latex '\scrollmode\input $(basename $@)' || exit 1; \ + bibtex $(basename $@) || exit 1; \ + latex '\scrollmode\input $(basename $@)' || exit 1; \ + while grep -s $(REPEAT_TEXT) $(addsuffix .log,$(basename $@)) ; do \ + latex '\scrollmode\input $(basename $@)' || exit 1; \ + done + +clean: + rm -f *.ps *.pdf *.dvi *.log *.toc *.out *.aux *.bbl *.blg *.lof