ALL: pxman.ps.Z
SHELL = /bin/sh

pxman.dvi: pxman.tex tpage.sty fileinc.sty refman.sty
	/bin/rm -f pxman.aux pxman.toc
	latex pxman
	sed 's/\\unhbox \\voidb@x \\kern .06em \\vbox {\\hrule width.3em}/_/g'  pxman.toc > .ptmp
	mv .ptmp pxman.toc
	latex pxman
	sed 's/\\unhbox \\voidb@x \\kern .06em \\vbox {\\hrule width.3em}/_/g'  pxman.toc > .ptmp
	mv .ptmp pxman.toc
pxman.ps: pxman.dvi
	dvips pxman
pxman.ps.Z: pxman.ps
	compress -c pxman.ps > pxman.ps.Z

web: pxman/pxman.html index.html pxman.ps.Z
	cp index.html /mcs/www/Projects/pexec
	if [ -d /mcs/www/Projects/pexec/pxman ] ; then \
	   /bin/rm -rf /mcs/www/Projects/pexec/pxman ; fi
	cp -rp pxman /mcs/www/Projects/pexec/pxman
	if [ -d /mcs/www/Projects/pexec/wwww ] ; then \
	    /bin/rm -rf /mcs/www/Projects/pexec/www ; fi
	cp -rp ../www /mcs/www/Projects/pexec
	cp pxman.ps.Z /home/ftp/pub/mpi

pxman/pxman.html: pxman.tex
	/home/gropp/bin/sun4/tohtml -basedef refmanbase -default pxman.tex
	/home/gropp/bin/sun4/tohtml -basedef refmanbase -default pxman.tex
index.html: index.tex
	/home/gropp/bin/sun4/tohtml -default -split -1 -nonavnames \
		-nocontents -gaudy index.tex
	/home/gropp/bin/sun4/tohtml -default -split -1 -nonavnames \
		-nocontents -gaudy index.tex
clean:
	/bin/rm -f *.dvi *.log *.toc *.aux
#
# Install these into the various FTP and WWW locations
install: pxman.ps pxman.ps.Z
	cp pxman.ps /home/ftp/pub/mpi
	cp pxman.ps.Z /home/ftp/pub/mpi
