#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for the user manual
#
# Copyright (c) 1994-5, Regents of the University of California
#
#
# IDENTIFICATION
#    /usr/local/devel/pglite/cvs/src/doc/Makefile,v 1.4 1995/07/14 20:01:59 jolly Exp
#
#-------------------------------------------------------------------------

NROFF=nroff

GROFF=groff -sept

FIG2DEV=fig2dev

%.cat:	%.me
	${GROFF} -me -Tascii $< > $@

%.cat:	%.man
	${GROFF} -Tascii tmac.an.old tmac.an.tr $< > $@

%.cat:  %.tex
	latex $<
	dvi2tty $*.dvi -o $@

%.ps:	%.me
	${GROFF} -me -Tps $< > $@

%.ps:	%.man
	${GROFF} -Tps tmac.an.old tmac.an.tr $< > $@

%.ps:   %.tex
	latex $<
	dvi2ps $*.dvi -o $@

%.eps:	%.fig
	${FIG2DEV} -L ps -p 0 < $< > $@

SRCS=	manual.me \
	manual-arch.fig \
	manual-er.fig \
	manual-files.fig

EPS=	manual-arch.eps \
	manual-er.eps \
	manual-files.eps

MANUAL=manual.ps

all: ${MANUAL}

${MANUAL}: ${SRCS} ${EPS}


