Skip to content

Instantly share code, notes, and snippets.

@xight
Created July 5, 2016 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xight/8a181cbbc3db33f6e9069b4f7e394c6f to your computer and use it in GitHub Desktop.
Save xight/8a181cbbc3db33f6e9069b4f7e394c6f to your computer and use it in GitHub Desktop.
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