all: txt html dvi pdf ps aux-clean

# I have problems with dia, therefore I commented these out and committed
# the .eps and the .png to CVS. Once we've sorted out the problems with dia,
# both AppserverArch.eps and AppserverArch.png can be removed from CVS.
#       -- Reinhard
#
# AppserverArch.eps: AppserverArch.dia
# 	dia --export=AppserverArch.eps --nosplash AppserverArch.dia
#
# AppserverArch.png: AppserverArch.dia
# 	dia --export=AppserverArch.png --nosplash AppserverArch.dia

AppserverArch.pdf: AppserverArch.eps
	epstopdf AppserverArch.eps

txt: *.texi AppserverArch.txt
	LANG=C makeinfo --no-headers --output=whitepaper.txt whitepaper.texi

html: *.texi AppserverArch.png
	LANG=C makeinfo --html --no-split whitepaper.texi

dvi: *.texi texinfo.tex AppserverArch.eps
	LANG=C texi2dvi whitepaper.texi

pdf: *.texi texinfo.tex AppserverArch.pdf
	LANG=C texi2pdf whitepaper.texi

ps: whitepaper.dvi
	dvips whitepaper -o whitepaper.ps

aux-clean:
	rm -f *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps

clean: aux-clean
	rm -f whitepaper.txt *.html *.dvi *.pdf *.ps # *.eps *.png
