# Make file for sendmail directory
#
# Things you might want to change.  Pass them in on the command line:
# ROOT - should point to the root where the commands will be installed
#        (e.g. /deliver/INETSVCS/indnetwk)

ROOT=

MKFLAGS=ROOT=${ROOT}

MAKE=/usr/ccs/bin/make ${MKFLAGS}

default: all

all: clean build install

clean:
	@echo "Cleaning the sendmail directory."
	@(cd db; ${MAKE} clean)
	@(cd cf/cf; ${MAKE} clean)
	@(cd src; ${MAKE} clean)
	@(cd aux; ${MAKE} clean)
	@(cd identd; ${MAKE} clean)

build: 
	@echo "Building the sendmail components."
	@(cd db; ${MAKE} build)
	@(cd cf/cf; ${MAKE} build)
	@(cd src; ${MAKE} build)
	@(cd aux; ${MAKE} build)
	@(cd identd; ${MAKE} build)

install:
	@echo "Installing the sendmail deliverables."
	@(cd db; ${MAKE} install)
	@(cd cf/cf; ${MAKE} install)
	@(cd src; ${MAKE} install)
	@(cd aux; ${MAKE} install)
	@(cd identd; ${MAKE} install)
