Skip to content

Instantly share code, notes, and snippets.

@xight
Created Jul 5, 2016
Embed
What would you like to do?
Makefile for TeX
FILENAME = FOOBAR
TEX = $(FILENAME).tex
DVI = $(FILENAME).dvi
AUX = $(FILENAME).aux
PDF = $(FILENAME).pdf
all:
make tex
make bibtex
make tex
make tex
make dvipdf
open $(PDF)
clean:
rm *.aux *.bbl *.blg *.dvi *.log *.out *.pdf
tex:
platex $(TEX)
bibtex:
pbibtex $(AUX)
dvipdf:
dvipdfmx $(DVI)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment