#
# Makefile for account.daily
#
# $Id: Makefile,v 1.2 1996/11/17 09:02:07 hans Exp $
#

BINDIR	= /usr/local/sbin

all:

install: account.daily
	install -m 0744 -o root -g root account.daily $(BINDIR)
	@echo
	@echo "To use account.daily, add an entry similar to the following"
	@echo "to your crontab:"
	@echo
	@echo "# At 23:59: Accounting summary"
	@echo "59 23 * * * /usr/local/sbin/account.daily"

install.isdn: account.isdn
	install -m 0744 -o root -g root account.isdn $(BINDIR)
	@echo
	@echo "To use account.isdn, add an entry similar to the following"
	@echo "to your crontab:"
	@echo
	@echo "# At 01:00 every month: ISDN summary"
	@echo "00 01 1 * * /usr/local/sbin/account.isdn"

uninstall:
	rm -f $(BINDIR)/account.daily
	rm -f $(BINDIR)/account.isdn
	@echo "To make the un-installation complete, remove the call of"
	@echo "account.daily and account.isdn from your crontab."

clean:
	rm -f core

distclean: clean

dist: distclean
	(cd ..; tar -cvzf acctsum-0.1.tar.gz --exclude=acctsum/CVS --exclude=acctsum/graph acctsum)

