TEX_FILES = $(wildcard *.tex)
BIB_FILES = $(wildcard *.bib)

all: hellprog.pdf

hellprog.pdf: $(TEX_FILES) $(BIB_FILES) Makefile
	pdflatex -shell-escape hellprog
	pdflatex -shell-escape hellprog
	bibtex hellprog
	pdflatex -shell-escape hellprog
	pdflatex -shell-escape hellprog

	pdflatex -shell-escape hellprog-slides
clean:
	rm -f *.aux *.bbl *.blg *.log *.pdf
