# Copyright (C) 1992, Digital Equipment Corporation 
# All rights reserved.
# See the file COPYRIGHT for a full description.
#
# Last modified on Thu Jan 12 15:58:57 PST 1995 by kalsow                     .
#      modified on Thu Jan  7 10:55:33 PST 1993 by muller                     .


TEXFILES = HyperPage.i.tex
DOCNAME = Doc

# TEXFILES should be a list of names of the tex files that
# are generated by m3totex

# DOCNAME should be the name of the document

# make DOCNAME.dvi will make TeX's dvi (device independent file)

# make proof will make DOCNAME.ps (a postscript file) which can
# be viewed with psview

# make print will print the document.

all: $(TEXFILES) $(DOCNAME).dvi

$(DOCNAME).dvi: $(DOCNAME).tex $(TEXFILES)
	latex $(DOCNAME).tex

print: $(DOCNAME).ps
	lpr $(DOCNAME).ps

proof: $(DOCNAME).ps
	psview $(DOCNAME).ps

$(DOCNAME).ps: $(DOCNAME).dvi
	dvips $(DOCNAME).dvi

.SUFFIXES: .i3 .i.tex .m3 .m.tex

.i3.i.tex: 
	m3totex $*.i3

.m3.m.tex: 
	m3totex $*.m3


