annotate eschulte/Makefile @ 20:5423d5aaa56a

added sample makefile from Eric Schulte that may one day replace these scripts
author Robert McIntyre <rlm@mit.edu>
date Fri, 02 Mar 2012 15:34:41 -0600
parents
children
rev   line source
rlm@20 1 EMACS=emacs
rlm@20 2 BATCH_EMACS=$(EMACS) --batch -Q -l init.el proposal.org
rlm@20 3
rlm@20 4 all: proposal.pdf
rlm@20 5
rlm@20 6 proposal.html: proposal.org
rlm@20 7 $(BATCH_EMACS) -f org-export-as-html
rlm@20 8
rlm@20 9 proposal.tex: proposal.org proposal.bib init.el
rlm@20 10 $(BATCH_EMACS) -f org-export-as-latex
rlm@20 11
rlm@20 12 proposal.bib: tasks.org bib-export.el
rlm@20 13 $(BATCH_EMACS) -l bib-export.el
rlm@20 14
rlm@20 15 proposal.pdf: proposal.tex gantt.pdf
rlm@20 16 rm -f proposal.aux
rlm@20 17 if pdflatex proposal.tex </dev/null; then \
rlm@20 18 true; \
rlm@20 19 else \
rlm@20 20 stat=$$?; touch proposal.pdf; exit $$stat; \
rlm@20 21 fi
rlm@20 22 bibtex proposal
rlm@20 23 while grep "Rerun to get" proposal.log; do \
rlm@20 24 if pdflatex proposal.tex </dev/null; then \
rlm@20 25 true; \
rlm@20 26 else \
rlm@20 27 stat=$$?; touch proposal.pdf; exit $$stat; \
rlm@20 28 fi; \
rlm@20 29 done
rlm@20 30
rlm@20 31 gantt.pdf: gantt.tex
rlm@20 32 ./single-fig gantt.tex
rlm@20 33
rlm@20 34 clean:
rlm@20 35 rm -f *.aux *.log *.dvi *.blg *.bbl *.toc proposal.tex *~ *.out *.html proposal.pdf proposal.bib gantt.pdf