BINDIR=/sbin
MANDIR=/usr/man/man8

install: bdflush
	cp -f bdflush $(BINDIR)/update
	if [ -d $(MANDIR) ] ; then cp bdflush.8 $(MANDIR) ; fi
	@if [ -f $(BINDIR)/bdflush ] ; then echo "Warning - $(BINDIR)/bdflush exists.  Please remove and verify "; fi
	@if [ -f $(BINDIR)/bdflush ] ; then echo "it is not referenced in /etc/rc."; fi


bdflush: bdflush.c
	$(CC) -O2 -o bdflush bdflush.c
	
#bdflush: bdflush.c
#	$(CC) -O2 -o bdflush bdflush.c
#
#install: bdflush
#	cp bdflush /etc/bdflush
#	ln -s /etc/bdflush /etc/update

dist:
	tar cf - * | gzip > cluster-1.00.tar.gz

