TARGET=disser TEXMF=/usr/share/texmf DESTDIR=$(TEXMF)/tex/latex/disser INSTFILES=$(TARGET).cls *.rtx CLEANFILES=$(INSTFILES) *.log *.out *.aux *.dvi *.idx *.glo *.toc *.bak $(TARGET).cls: $(TARGET).ins latex $< install: $(TARGET).cls mkdir -p $(DESTDIR) cp $(INSTFILES) $(DESTDIR) doc: $(TARGET).dtx latex $< latex -src-specials $< clean: rm -f $(CLEANFILES)