# make all of the Distributed Checksum Clearinghouse

# --S-LICENSE--
# $Revision: 1.64 $
# Generated automatically from Makefile.in by configure.

DEPTH	=.
SUBDIR_PROGS=cdcc ck2ip dbclean dccd dblist dccm dccifd	\
	dccproc dccsight homedir misc cgi-bin
SUBDIR_OPT  =rrd-combine
SUBDIR_MAN  =cdcc dbclean dccd dblist dccm dccifd dccproc dccsight
SUBDIR	    =dcclib clntlib srvrlib dns-helper thrlib $(SUBDIR_PROGS)
SUBDIR_OTHER= $(SUBDIR_OPT)

MAN8	=dcc.8 $(SUBDIR_MAN:=.8)
MAN0	=$(MAN8:.8=.0)
MANGZ	=$(MAN8:.8=.8.gz)
MAN_HTML=$(MAN8:.8=.html)
MANX	=$(MANGZ)

all:	$(MANX)

.include "$(DEPTH)/Makefile.inc"

# delete all known files in build tree
purge:cleandir
	find * -depth -name .manifest -print | while read NM; do\
	    (cd `expr $$NM : '\(.*\)/[^/]*'`; rm -f `cat .manifest`)\
	    done
	-rm -rf `cat .config .manifest`
	-find * -depth -type d -print | /usr/bin/xargs rmdir

# uninstall things we won't install
install:noinstall
noinstall:
	for DIR in  -; do if test "$$DIR" != -; then\
		(cd $$DIR; $(MAKE) deinstall); fi; done

deinstall:
	rmdir /var/dcc/libexec /var/dcc 2>/dev/null || true

CLEANFILES+=$(MANGZ)

.SUFFIXES:.8 .8.gz

.8.8.gz:
	gzip <$< >$@

