Skip to content

Instantly share code, notes, and snippets.

@martinfilliau
Created March 10, 2011 11:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinfilliau/863993 to your computer and use it in GitHub Desktop.
Save martinfilliau/863993 to your computer and use it in GitHub Desktop.
Simple script to generate a PDF from a LaTeX file.
# Makefile for LaTeX files
# file name without the .tex extension
FILE = proposal
all: pdf cleaninterimfiles
pdf:
@pdflatex $(FILE)
@bibtex $(FILE)
@pdflatex $(FILE).tex
@pdflatex $(FILE).tex
wordcount:
@texcount $(FILE).tex
clean: cleanpdf cleaninterimfiles
cleanpdf:
@rm -f $(FILE).pdf
cleaninterimfiles:
@rm -f $(FILE).aux
@rm -f $(FILE).bbl
@rm -f $(FILE).blg
@rm -f $(FILE).dvi
@rm -f $(FILE).log
@rm -f $(FILE).out
@rm -f $(FILE).run.xml
@rm -f $(FILE).toc
@rm -f $(FILE)-blx.bib
spellcheck:
@aspell -t check $(FILE).tex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment