targets = CPA-2011-IOS.pdf
images =

all: $(targets)

pdflatex = pdflatex -interaction=errorstopmode -halt-on-error

%.pdf: %.tex biblio.bib IOS-Book-Article-CPA-2011.cls $(images)
	$(pdflatex) $<
	bibtex $*
	$(pdflatex) $<
	$(pdflatex) $<

clean:
	rm -f $(targets) $(images) *.aux *.log *.nav *.out *.snm *.toc *.vrb *.bbl *.blg
