diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/eschulte/Makefile	Fri Mar 02 15:34:41 2012 -0600
     1.3 @@ -0,0 +1,35 @@
     1.4 +EMACS=emacs
     1.5 +BATCH_EMACS=$(EMACS) --batch -Q -l init.el proposal.org
     1.6 +
     1.7 +all: proposal.pdf
     1.8 +
     1.9 +proposal.html: proposal.org
    1.10 +	$(BATCH_EMACS) -f org-export-as-html
    1.11 +
    1.12 +proposal.tex: proposal.org proposal.bib init.el
    1.13 +	$(BATCH_EMACS) -f org-export-as-latex
    1.14 +
    1.15 +proposal.bib: tasks.org bib-export.el
    1.16 +	$(BATCH_EMACS) -l bib-export.el
    1.17 +
    1.18 +proposal.pdf: proposal.tex gantt.pdf
    1.19 +	rm -f proposal.aux
    1.20 +	if pdflatex proposal.tex </dev/null; then \
    1.21 +		true; \
    1.22 +	else \
    1.23 +		stat=$$?; touch proposal.pdf; exit $$stat; \
    1.24 +	fi
    1.25 +	bibtex proposal
    1.26 +	while grep "Rerun to get" proposal.log; do \
    1.27 +		if pdflatex proposal.tex </dev/null; then \
    1.28 +			true; \
    1.29 +		else \
    1.30 +			stat=$$?; touch proposal.pdf; exit $$stat; \
    1.31 +		fi; \
    1.32 +	done
    1.33 +
    1.34 +gantt.pdf: gantt.tex
    1.35 +	./single-fig gantt.tex
    1.36 +
    1.37 +clean:
    1.38 +	rm -f *.aux *.log *.dvi *.blg *.bbl *.toc proposal.tex *~ *.out *.html proposal.pdf proposal.bib gantt.pdf