#--------------------------------------------------------------- # Makefile # Note the use of latexmk, to make sure that the paper is only # regenerated when the latex source file changes - mikerb 9/3/17 #--------------------------------------------------------------- .SILENT: PAPER = proj_icex FIGSDIR = $(CURDIR)/figures/ MAKETK = "pdflatex -interaction=nonstopmode" .PHONY : $(PAPER).pdf all clean all: $(PAPER).pdf $(PAPER).pdf: $(PAPER).tex ./build_citations.sh latexmk -bibtex -pdf -pdflatex=$(MAKETK) -use-make $(PAPER).tex pdfo: all open $(PAPER).pdf & pdfv: open $(PAPER).pdf & clean: rm -f $(PAPER).dvi *~ $(PAPER).log $(PAPER).pdf $(PAPER).ind rm -f $(PAPER).bbl $(PAPER).blg $(PAPER).aux rm -f $(PAPER).toc $(PAPER).idx $(PAPER).ilg rm -f $(FIGSDIR)*.bak $(FIGSDIR)*~ $(PAPER).out *.log rm -f $(PAPER)*.adx $(PAPER).bdx $(PAPER).cdx rm -f $(PAPER)*.fls $(PAPER).fdb_latexmk rm -f biblio.bib citations.tex