default: tnu.ps tnp.ps tngid.ps

all: tnu.ps tnp.ps tngid.ps tnu/tnu.html tnp/tnp.html tngid/tngid.html

tnu.ps: tnu.tex
	latex tnu.tex
	latex tnu.tex
	latex tnu.tex
	dvips -o tnu.ps tnu.dvi
	dvips -t letter -o tnuletter.ps tnu.dvi
	touch tnu.ps

tnp.ps: tnp.tex
	latex tnp.tex
	latex tnp.tex
	latex tnp.tex
	dvips -o tnp.ps tnp.dvi
	dvips -t letter -o tnpletter.ps tnp.dvi
	touch tnp.ps

tngid.ps: tngid.tex
	latex tngid.tex
	latex tngid.tex
	latex tngid.tex
	dvips -o tngid.ps tngid.dvi
	dvips -t letter -o tngidletter.ps tngid.dvi
	touch tngid.ps

tnu/tnu.html: tnu.tex
	latex2html -local_icons tnu
	touch tnu/tnu.html

tnp/tnp.html: tnp.tex
	latex2html -local_icons tnp
	touch tnp/tnp.html

tngid/tngid.html: tngid.tex
	latex2html -local_icons tngid
	touch tngid/tngid.html

clean:
	rm -f *.ps *.log *.dvi *.aux *.toc *.bak
	rm -rf tnu/*
	rm -rf tnp/*
	rm -rf tngid/*
