Makefile 855 Bytes
# source: https://tex.stackexchange.com/questions/40738/how-to-properly-make-a-latex-project

TEX = pdflatex -shell-escape -interaction=nonstopmode -file-line-error
BIB = bibtex
TARGET = ifcs2018

all: $(TARGET)_abstract $(TARGET)_poster $(TARGET)_processing

view: $(TARGET)
	evince $(TARGET).pdf

view_poster: $(TARGET)_poster
	evince $(TARGET)_poster.pdf

$(TARGET)_abstract: $(TARGET)_abstract.tex references.bib
	$(TEX) $@.tex
	$(BIB) $@
	$(TEX) $@.tex
	$(TEX) $@.tex

$(TARGET)_poster:
	$(TEX) $@.tex
	$(TEX) $@.tex

$(TARGET)_processing: $(TARGET)_processing.tex references.bib
	$(TEX) $@.tex
	$(BIB) $@
	$(TEX) $@.tex
	$(TEX) $@.tex

clean:
	rm -f $(TARGET).aux $(TARGET).log $(TARGET).out $(TARGET).bbl $(TARGET).blg
	rm -f $(TARGET)_poster.aux $(TARGET)_poster.log $(TARGET)_poster.out

mrproper: clean
	rm -f $(TARGET).pdf $(TARGET)_poster.pdf