Skip to content

Instantly share code, notes, and snippets.

@xight
Created July 5, 2016 00:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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