.SUFFIXES: .book .html .doc .mif
# $XConsortium: Makefile /main/5 1996/09/24 12:39:21 ray $

#This Makefile is *NOT* automatically generated.  Sorry.

# To make the postscript versions of the protocol or api specs, open the
# corresponding .book documents to find out what the pieces are, and then
# open the .mif files for those pieces, and write out .doc versions of those
# files.  Now go back to the .book file under frame, generate the table of
# contents, and hit print.
# I know, it's ugly, but we never got it automated correctly.

.mif.html: $< 
	/tools/packages/mifmucker/bin/mifmucker html \
		-Phtml "-toc -inline gif -dir $(*)G" -L -t tmp $< && \
	mv $(@) tmp$$ && \
	sed -e s/XXXTOC/$(*)TOC/g -e 's,\(<A NAME=[^>]*>\)</A>,\1.</A>,g'< \
		tmp$$ > $(@) && \
	rm tmp$$

all: protoHTML.tar apiHTML.tar

protoHTML.tar: proto.html issues.html
	tar cvf $(@) proto.html protoTOC.html issues.html protoG/

apiHTML.tar: api.html issues.html
	tar cvf $(@) api.html apiTOC.html issues.html apiG/
