REPO = git://tremily.us/thesis.git PACKAGE = thesis .PHONY : all checkout clean all : draft.pdf clean : rm -rf $(PACKAGE) draft.pdf $(PACKAGE) : git clone $(REPO) $@ checkout : $(PACKAGE) (cd $(PACKAGE) && git pull) .PHONY : $(PACKAGE:%=%/thesis.pdf) $(PACKAGE:%=%/thesis.pdf) : checkout (cd $(PACKAGE) && scons) draft.pdf : $(PACKAGE:%=%/thesis.pdf) cp $(PACKAGE:%=%/thesis.pdf) $@