# Makefile for everything
#
# Eventually, it would be nice to have various targets depending on
# the output devices, and pass that info down to the dev/ directory.
# For now, this will do.
MAKE=	make
MFLAGS=

# where to find the font description file
CONFFILE=/usr/local/lib/tex/fontdesc

# The subdirectories.  N.B.: "lib" must appear first!
SUBDIR=	lib dev

OPTS=	MFLAGS="${MFLAGS}" \
	CONFFILE=${CONFFILE} CC=${CC} ${MFLAGS}

default: all

all:
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${OPTS}); done

install clean depend makefile: doit
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${OPTS} $@); done

doit:
