Skip to content

Instantly share code, notes, and snippets.

@caiofcm
Last active June 18, 2018 13:02
Show Gist options
  • Save caiofcm/163419c97abb45c89cec1dd45cf80c44 to your computer and use it in GitHub Desktop.
Save caiofcm/163419c97abb45c89cec1dd45cf80c44 to your computer and use it in GitHub Desktop.
pdflatex makefile
# LaTeX Makefile
FILE=thesis
all: $(FILE).pdf
.PHONY: clean
clean:
rm -rf *.blg
rm -rf *.out
rm -rf *.bbl
rm -rf *.log
rm -rf *.ind
rm -rf *.ilg
rm -rf *.lot
rm -rf *.lof
rm -rf *.ind
rm -rf *.idx
rm -rf *.aux
rm -rf *.toc
rm -f ${FILE}.pdf
$(FILE).pdf: *.tex *.bib *.sty
pdflatex -shell-escape $(FILE).tex
pdflatex -shell-escape $(FILE).tex
makeindex $(FILE).nlo -s nomencl.ist -o $(FILE).nls
bibtex $(FILE)
pdflatex -shell-escape $(FILE).tex
pdflatex -shell-escape $(FILE).tex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment