comparison 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
comparison
equal deleted inserted replaced
19:c14f3a4af7fd 20:5423d5aaa56a
1 EMACS=emacs
2 BATCH_EMACS=$(EMACS) --batch -Q -l init.el proposal.org
3
4 all: proposal.pdf
5
6 proposal.html: proposal.org
7 $(BATCH_EMACS) -f org-export-as-html
8
9 proposal.tex: proposal.org proposal.bib init.el
10 $(BATCH_EMACS) -f org-export-as-latex
11
12 proposal.bib: tasks.org bib-export.el
13 $(BATCH_EMACS) -l bib-export.el
14
15 proposal.pdf: proposal.tex gantt.pdf
16 rm -f proposal.aux
17 if pdflatex proposal.tex </dev/null; then \
18 true; \
19 else \
20 stat=$$?; touch proposal.pdf; exit $$stat; \
21 fi
22 bibtex proposal
23 while grep "Rerun to get" proposal.log; do \
24 if pdflatex proposal.tex </dev/null; then \
25 true; \
26 else \
27 stat=$$?; touch proposal.pdf; exit $$stat; \
28 fi; \
29 done
30
31 gantt.pdf: gantt.tex
32 ./single-fig gantt.tex
33
34 clean:
35 rm -f *.aux *.log *.dvi *.blg *.bbl *.toc proposal.tex *~ *.out *.html proposal.pdf proposal.bib gantt.pdf