PDFLATEX_TEMP = book.aux book.log book.out book.toc emacs.tex emacs.aux toc.aux all: book.pdf emacs.tex: export.el emacs.org emacs -batch -l $^ -f "wl-org-export-as-latex" book.toc: book.tex toc.tex emacs.tex -pdflatex -interaction=nonstopmode $< rm -f book.pdf book.pdf : book.tex book.toc toc.tex emacs.tex -pdflatex -interaction=nonstopmode $< clean: rm -f ${PDFLATEX_TEMP} realclean: rm -f ${PDFLATEX_TEMP} emacs.html book.pdf