########################################################################### ## This is a generic makefile for a project consisting of a single ## top-level LaTeX document .tex where is specified ## below and is assumed to depend on all .tex files in the same ## directory as well as any .eps files in a figures subdirectory. ## ## N. Neri, March 2011 ########################################################################### basename = note TEX = latex ## dependencies and compilation default : ${basename}.pdf pdf : ${basename}.pdf dvi : ${basename}.dvi ${basename}.pdf : ${basename}.dvi dvipdf $< ${basename}.dvi : $(wildcard *.tex) $(wildcard *.eps) $(TEX) ${basename}.tex $(TEX) ${basename}.tex ## housekeeping .PHONY : clean clean : $(RM) *~ *.dvi *.aux *.log *.toc *.lot *.lof *.idx *.out