The Perfect Makefile for PDF Latex

  • Automatically generates PDF files from EPS
  • Uses rubber to compile and generate bibliography
.PHONY: clean clobber

FILENAME = your_file_name_here

SOURCES = main.tex bibliography.bib

EPSS := $(wildcard images/*.eps)

$(FILENAME).pdf: $(SOURCES) $(EPSS:.eps=.pdf)
	rubber --pdf main.tex

%.pdf : %.eps
	epstopdf $^

clean:
	rm -f $(EPSS:.eps=.pdf)
	rm -f $(FILENAME).pdf $(FILENAME).dvi
	rm -f *.log *.toc *.aux *.out *.bbl *.blg

clobber:
	$(MAKE) clean
	rm -f *~ \#*\#
devlog/blog/the_perfect_makefile_for_pdf_latex.txt · Last modified: 2010/06/10 17:03 by x4
Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! DevLog Atom feed Valid XHTML 1.0