# $Id: Makefile.in 4127 2013-08-05 12:54:39Z zacheiss $

SHELL=/bin/sh
@SET_MAKE@

srcdir=@srcdir@
VPATH=@srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
sbindir=@sbindir@
mandir=@mandir@
mrbindir=@mrbindir@
libdir=@libdir@

CLIENTDIRS=include lib clients update man @WEBMOIRA_SUBDIRS@
SVRDIRS=db util/bsd-compat server backup dbck dcm gen regtape incremental @AFS_SYNCDIR@ @RSAREF_SUBDIRS@
DEPDIRS=@COM_ERR_SUBDIR@

SUBDIRS=$(CLIENTDIRS) @SVRSUBDIRS@

all:
	@for d in $(SUBDIRS); do (echo "### Making $@ in $$d"; cd $$d; $(MAKE) $@) || exit 1; done

clean:
	@for d in $(SUBDIRS); do (echo "### Making $@ in $$d"; cd $$d; $(MAKE) $@) || exit 1; done

cleandir distclean:
	rm -f config.log config.cache config.status Makefile
	@for d in $(SUBDIRS); do (echo "### Making $@ in $$d"; cd $$d; $(MAKE) $@) || exit 1; done

depend:
	@if [ "x$(DEPDIRS)" != x ]; then \
	    for d in $(DEPDIRS); do (echo "### Making all in $$d"; cd $$d; $(MAKE) all) || exit 1; done; \
	fi
	@for d in $(SUBDIRS); do (echo "### Making $@ in $$d"; cd $$d; $(MAKE) $@) || exit 1; done

install:
	$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir) $(DESTDIR)$(libdir)
	@for d in $(SUBDIRS); do (echo "### Making $@ in $$d"; cd $$d; $(MAKE) $@) || exit 1; done

svrinstall:
	$(srcdir)/mkinstalldirs $(DESTDIR)$(mrbindir) $(DESTDIR)$(libdir)
	@for d in $(SVRDIRS); do (echo "### Making install in $$d"; cd $$d; $(MAKE) install) || exit 1; done

world: depend all

