#
# $Id: Makefile.in,v 1.1 1999-02-02 20:39:39 kcr Exp $
#

SHELL=/bin/sh
VPATH=@srcdir@
INSTALL=@INSTALL@
INSTALL_DATA=@INSTALL_DATA@
MKDIR_P=@MKDIR_P@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
datarootdir=@datarootdir@
mandir=@mandir@

SUBDIRS=ets include usp libds server client mclient edsc dsgrep

all clean depend install distclean::
	for i in ${SUBDIRS}; \
		do echo making $@ in $$i; \
		(cd $$i; ${MAKE} $@) || exit 1; \
	done

install::
	${MKDIR_P} ${DESTDIR}${mandir}/man1
	${MKDIR_P} ${DESTDIR}${mandir}/man8
	${INSTALL_DATA} ${srcdir}/discuss.1 ${DESTDIR}${mandir}/man1
	${INSTALL_DATA} ${srcdir}/create_mtg_dir.1 ${DESTDIR}${mandir}/man1
	${INSTALL_DATA} ${srcdir}/discussd.8 ${DESTDIR}${mandir}/man8
	${INSTALL_DATA} ${srcdir}/disserve.8 ${DESTDIR}${mandir}/man8

# Doesn't depend on clean because that would run clean target in
# subdirectories more than once
distclean::
	rm -rf config.cache config.log config.status Makefile
