#  makefile_def from ObjectProDSP 0.1
#  Copyright (C) 1994, Mountain Math Software, All rights reserved.
#  Licensed for free use and distribution under version 2 of the Gnu General
#  Public License. Please see file COPYING for details and restrictions.
#  
#  ObjectProDSP is a trademark of Mountain Math Software.
#  
# This is a bit complex. We want to remake things until the index and
# table of contents stop changing and there is no message from LaTeX
# about labels changing. First `check_index' is called to see if the
# old and new `idx' files differ. If they do we recreate the `txx'
# file (the one the `dvi' file depends on). We then do `make' of the `dvi'
# file whether or not we changed the `txx file'. This is so we can
# check for other dependencies of the `dvi' file.
#
# If the `dvi' needs to be updated this is done by `latex_ix'.
# `latex_ix' runs latex and then checks if the `idx' files have changed.
# If they have it removes the `dvi' file' and remakes the `txx' file.
# Next it checks to see if the `txx' files have changed, if
# the `toc' files have changed or if the `log' file says an update is
# needed. If any of these are true the `dvi' file is removed.
# A make of the `dvi' file is then always done but should produce no
# action unless the `dvi' file needs updating.


DOC_DIR=${OPD_ROOT}/doc
HELP_DIR=${DOC_DIR}/helptex
NODE_HELP_DIR=${DOC_DIR}/nodetex
EXAMP_DIR=${DOC_DIR}/examptex
INDEX_TEX=${OPD_ROOT}/bin/indextex
MAC_DIR=${DOC_DIR}/mac
PSFIG_DIR=${DOC_DIR}/psfig
TRADEMARK_DIR=${DOC_DIR}/trademark
MENU_DIR=${DOC_DIR}/menus
OPD_CHECK_INDEX=${DOC_DIR}/scripts/check_index.sh
OPD_LATEX=${DOC_DIR}/scripts/latex_ix.sh
OPD_TST_DIR=${OPD_ROOT}/test
OPD_TST_RUN=${OPD_TST_DIR}/xwd
OPD_COM_MAKEFILE_DEP=domakemake Makefile_head ${DOC_DIR}/mac/Makefile_preamble 

OPD_DOC_TRADEMARK_DEP= ${TRADEMARK_DIR}/licpreamble.tex \
	${TRADEMARK_DIR}/mmcvlogo.tex ${TRADEMARK_DIR}/names.tex \
	${TRADEMARK_DIR}/mtnmath.tex


OPD_DOC_COM_DEP= ${OPD_DOC_TRADEMARK_DEP} \
	${PSFIG_DIR}/FFT_Net.ps ${MAC_DIR}/cppmac.tex ${MAC_DIR}/docname.tex \
	${MAC_DIR}/dppdoc.tex ${MAC_DIR}/gpl.tex ${MAC_DIR}/license.tex \
	${MAC_DIR}/litcom.tex ${MAC_DIR}/psfig.tex ${PSFIG_DIR}/FFT_Net.ps



