MAIN := framework.pdf SRC := config/$(basename $(MAIN)).tex DEP := \ config/headfoot.tex \ config/sourcelst.tex \ content.tex \ Makefile all: $(MAIN) one_page: $(DEP) @latex config/framework_one_page.tex latex config/framework_one_page.tex dvipdf framework_one_page.dvi framework_one_page.pdf clean: rm -f \ $(basename $(MAIN)).aux \ $(basename $(MAIN)).dvi \ $(basename $(MAIN)).log \ $(basename $(MAIN)).out \ $(basename $(MAIN)).toc \ $(MAIN) \ framework_one_page.* $(MAIN): $(DEP) @latex $(SRC) latex $(SRC) dvipdf $(basename $(MAIN)).dvi $(MAIN)