/* Copyright (C) 1992, Digital Equipment Corporation                         */
/* All rights reserved.                                                      */
/* See the file COPYRIGHT for a full description.                            */

/* Last modified on Wed Feb 12 12:47:59 PST 1992 by muller                   */
/*      modified on Fri Nov 15 14:12:44 PST 1991 by kalsow                   */



DOC_SRCS = doc.tex copyright.tex intro.tex license.tex update.tex \
           installation.tex user.tex libs.tex local.tex \
           internals.tex

STY_SRCS = doc.sty fullpage.sty

BIB_SRCS = modula3.bib

DOCS     = doc.dvi agreement.dvi doc.ps agreement.ps
PICTS    = m3tokens.ps m3syntax.ps m3poster.ps


all:: documents pictures
scratch:: ; /bin/rm -f *.dvi *.aux *.log $(DOCS) $(PICTS)

documents: $(DOCS)
pictures: $(PICTS)

doc.dvi: $(DOC_SRCS) $(STY_SRCS) $(BIB_SRCS)

agreement.dvi: agreement.tex ; latex agreement.tex

m3tokens.ps m3syntax.ps m3poster.ps: m3grammar.h railroad.h

local.tex:

.SUFFIXES: .dvi .tex .txt .ps
.txt.ps:
	/bin/rm -f $*.ps ; /lib/cpp -P < $*.txt > $*.ps ; chmod -w $*.ps
.tex.ps:
	latex $*; bibtex $*; latex $*; latex $*
	dvips -o $*.ps $*.dvi
.tex.dvi:
	latex $*; bibtex $*; latex $*; latex $*
.dvi.ps:
	dvips -o $*.ps $*.dvi



