Skip to content

Instantly share code, notes, and snippets.

@Miliox
Created November 8, 2012 00:36
Show Gist options
  • Save Miliox/4035649 to your computer and use it in GitHub Desktop.
Save Miliox/4035649 to your computer and use it in GitHub Desktop.
Makefile to compile pdflatex with bibtex
# Author: Emiliano Carlos de Moraes Firmino @ 10/2012
SHELL=/bin/sh
THESIS=thesis
.SUFFIXES:
.SUFFIXES: .bib .pdf .tex
.PHONY: clean
run: $(THESIS).pdf
$(THESIS).pdf: $(THESIS).bbl $(THESIS).tex
pdflatex $(THESIS).tex -draftmode
pdflatex $(THESIS).tex
$(THESIS).bbl: $(THESIS).aux
bibtex $(THESIS).aux
$(THESIS).aux: $(THESIS).bib
pdflatex $(THESIS).tex -draftmode
pdflatex $(THESIS).tex -draftmode
clean:
rm -rf *.aux *.lof *.log *.lot *.toc *.bbl *.blg *pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment