SHELL=/bin/sh objects = $(wildcard *.tex) #address = "$(shell whoami) - $(shell date '+%d %m %Y')" address = "" dviobjects = $(objects:.tex=.dvi) psobjects = $(objects:.tex=.ps) pdfobjects = $(objects:.tex=.pdf) htmlobjects = $(objects:.tex=.html) txtobjects = $(objects:.tex=.txt) rtfobjects = $(objects:.tex=.rtf) %.ps : %.dvi dvips -o $@ $< %.pdf : %.ps ps2pdf $< $@ %.txt : %.ps ps2ascii $< $@ %.rtf : %.tex latex2rtf $< %.dvi: %.tex latex $< latex $< %.html: %.tex latex2html -address $(address) -noascii_mode -images -white -antialias_text -antialias -notransparent -noinfo -bottom_navigation -image_type png -noldump -lcase_tags -nofork -split 0 -mkdir -html_version 4.0,math,table -local_icons -dir $@ $< dvi: $(dviobjects) ps: $(psobjects) pdf: $(pdfobjects) html: $(htmlobjects) txt: $(txtobjects) rtf: $(rtfobjects) idx: dvi makeindex *.idx all: dvi ps pdf txt html rtf clean: rm -f *.log *.aux *.log *.aux *.ind *.idx *.ilg *.toc *.out *.lof *.lot *~ rm -f *.html/WARNINGS *.html/labels.pl *.html/*.log *.html/*.aux \ *.html/*.tex *.html/*.ps *.html/images.pl distclean: clean rm -f *.dvi *.ps *.pdf *.txt rm -rf *.html