Skip to content

Instantly share code, notes, and snippets.

@MrOrz
Created March 6, 2014 18:35
Show Gist options
  • Save MrOrz/9396434 to your computer and use it in GitHub Desktop.
Save MrOrz/9396434 to your computer and use it in GitHub Desktop.
My makefile for latex
TARGET = uist172-liang
PDFLATEX = /usr/texbin/pdflatex
BIBTEX = /usr/texbin/bibtex
LATEX = /usr/texbin/pdflatex
all:
$(PDFLATEX) -synctex=1 -interaction=nonstopmode $(TARGET).tex
$(BIBTEX) $(TARGET).aux
$(PDFLATEX) -synctex=1 -interaction=nonstopmode $(TARGET).tex
$(PDFLATEX) -synctex=1 -interaction=nonstopmode $(TARGET).tex
open $(TARGET).pdf
ps:
$(PDFLATEX) -synctex=1 -interaction=nonstopmode -output-format=dvi $(TARGET).tex
$(BIBTEX) $(TARGET).aux
$(PDFLATEX) -synctex=1 -interaction=nonstopmode -output-format=dvi $(TARGET).tex
$(PDFLATEX) -synctex=1 -interaction=nonstopmode -output-format=dvi $(TARGET).tex
dvips -o $(TARGET).ps $(TARGET).dvi
zip:
tar czvf $(TARGET).tar.gz *.tex *.bst *.bib *.cls Makefile README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment