# The following directories may need to be changed at your site
#
# This is where the manual pages go
MAN = /usr/local/man/man1
#
# This is where the executable binaries go
BIN = /usr/local/bin
#
# This is where the PostScript prologue files go.
POSTSCRIPT = /usr/local/lib/tex
#
# This is which Header file to use; see postscript/makefile
HEADER = large
#
# This is where LaTeX style files go.
LATEXIN=/usr/local/lib/tex/inputs
#
# This is where TeX inputs go.
TEXIN=/usr/local/lib/tex/inputs

all : dvi2ps install psfigguide

dvi2ps :
	(cd src; make dvi2ps)
	(cd postscript; make ${HEADER})

psfigguide :
	(cd psfig/usrguide; make ug.ps)

install :
	(cd src; make "MAN=${MAN}" "BIN=${BIN}" "POSTSCRIPT=${POSTSCRIPT}" install)
	(cd bbfig; make "MAN=${MAN}" "BIN=${BIN}" "POSTSCRIPT=${POSTSCRIPT}" install)
	(cd psfig; make "MAN=${MAN}" "LATEXIN=${LATEXIN}" "TEXIN=${TEXIN}" "POSTSCRIPT=${POSTSCRIPT}" install)
	(cd postscript; make "POSTSCRIPT=${POSTSCRIPT}" install)
	(cd styles; make "LATEXIN=${LATEXIN}" install)

clean :
	(cd src; make veryclean)
	(cd psfig/usrguide; make clean)
	(cd postscript; make clean)
