Mercurial > org-tools
view 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 |
line wrap: on
line source
1 EMACS=emacs2 BATCH_EMACS=$(EMACS) --batch -Q -l init.el proposal.org4 all: proposal.pdf6 proposal.html: proposal.org7 $(BATCH_EMACS) -f org-export-as-html9 proposal.tex: proposal.org proposal.bib init.el10 $(BATCH_EMACS) -f org-export-as-latex12 proposal.bib: tasks.org bib-export.el13 $(BATCH_EMACS) -l bib-export.el15 proposal.pdf: proposal.tex gantt.pdf16 rm -f proposal.aux17 if pdflatex proposal.tex </dev/null; then \18 true; \19 else \20 stat=$$?; touch proposal.pdf; exit $$stat; \21 fi22 bibtex proposal23 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 done31 gantt.pdf: gantt.tex32 ./single-fig gantt.tex34 clean:35 rm -f *.aux *.log *.dvi *.blg *.bbl *.toc proposal.tex *~ *.out *.html proposal.pdf proposal.bib gantt.pdf