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
	
clean:
	rm -f bdflush

