# $Id: Makefile,v 1.2 2000/12/04 10:48:23 chlorenz Exp $ 
#
# EDIT THE FOLLOWING VARIABLES:

# Directory, where the executable is placed to
BINDEST=/usr/bin

# Directory, where a subdirectory "bbackup" is created, where all 
# configuration data are placed into.
ETCDEST=/etc

# Head directory, where the manpage will be placed to (into subdirectory
# man/man1
MANDEST=/usr

########################################################################
all: install

install:
	install bin/bbackup $(BINDEST)/bbackup ;
	install -d $(ETCDEST)/bbackup ;
	@if [ ! -f $(ETCDEST)/bbackup/bbackuprc ]; then \
		echo "Installing sample bbackuprc in $(ESCDEST)/bbackup"; \
		install etc/bbackuprc.sample $(ETCDEST)/bbackup/bbackuprc ; \
	fi ;
	@perldoc bin/bbackup > $(MANDEST)/man/man1/bbackup.1

