ThesisManuscript/Makefile

28 lines
659 B
Makefile

TARGET=main
LATEX_FLAGS=--shell-escape
all: pdf
rsync -av . ~/Backup/Thesis/ --exclude .git
# If there is no bibliography comment the bibtext dependency
pdf: bibtex
pdflatex $(LATEX_FLAGS) $(TARGET).tex
pdflatex $(LATEX_FLAGS) $(TARGET).tex
pdf-lazy:
pdflatex $(LATEX_FLAGS) $(TARGET).tex
bibtex: pdf-lazy
bibtex $(TARGET)
clean:
rm -f *.dvi *.aux *.bbl *.blg $(TARGET).ps *.toc *.ind *.out *.brf *.ilg *.idx *.log *.bcf *.nav *.run.xml *.snm *.vrb *.backup tex/*.backup *~ *.tdo
#find img \( -name "*.aux" -o -name "*.log" \) -exec rm '{}' +
clean_all: clean
rm -f $(TARGET).pdf
clean_pdf_images: clean
find img -name "*.pdf" -exec rm '{}' +