Created
March 10, 2011 11:55
-
-
Save martinfilliau/863993 to your computer and use it in GitHub Desktop.
Simple script to generate a PDF from a LaTeX file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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