SRC=redundant.tex inpaintNN.tex
PDF=$(SRC:.tex=.pdf)
AUX=$(SRC:.tex=.aux)

all: $(PDF)

%.pdf: %.tex %.bbl 
	pdflatex $<
	pdflatex $<
	make clean

%.bbl: %.aux 
	bibtex $<

%.aux: %.tex
	pdflatex $<

clean:
	rm -f *.aux *.nav *.log *.out *.toc *.snm *.bbl *.blg

dist_clean: clean
	rm -f *.pdf 
