
NAME = theory

all: $(NAME).ps

$(NAME).dvi $(NAME).ps $(NAME).pdf: *.tex
# These first 2 lines are a hack, needed because we don't have an
# mpost module for rubber
	rubber -p --clean $(NAME)
	rubber $(NAME)
	rubber -p --clean $(NAME)
	mpost figures
	rubber -p -o ps2pdf $(NAME)
	rubber-info $(NAME)

clean:
	rubber -p --clean $(NAME)
	rm -f *.log *.pdf

.PHONY: all clean
