.PHONY: clean all cleanall

# Make sure this has all of the right dependencies
DEPENDS=tex/*.tex *.sty *.bib *.tex

TARGET=aexam

all: $(TARGET).pdf

%.pdf: %.tex $(DEPENDS)
	rubber -f --pdf -s $<
	rubber-info --check $<

clean:
	rubber --clean $(TARGET)

cleanall:
	rubber --clean --pdf $(TARGET)