LATEX = latex DVIPS = dvips PS2PDF = ps2pdf REPORT = student # Put here ^^^^^ name of your report file here, without extension # Like, if you have `student.tex' put here `student' all: $(REPORT).dvi ps: $(REPORT).ps pdf: $(REPORT).pdf %.dvi: %.tex @$(LATEX) $< @$(LATEX) $< %.ps: %.dvi @$(DVIPS) $< %.pdf: %.ps @$(PS2PDF) $< clean: rm -rf *.log *.aux *.ps *.pdf *~ *.dvi