#     UBT - Unix Backup Tool
# 
#    Copyright (C) 1998  Gilbert ROBERT 
# 
#        @version 1.2    Released 07-27-98
# 
#    This package is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Library General Public
#    License as published by the Free Software Foundation; either
#    version 2 of the License, or (at your option) any later version.
# 
#    This library is distributed in the hope that it will be useful,
#
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#    Library General Public License for more details.
# 
# 
#    You should have received a copy of the GNU Library General Public
#    License along with this library; if not, write to the Free
#    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# 
#    A copy of the  GNU Library General Public License is also available 
#    on the world-wide-web at ftp://prep.ai.mit.edu/pub/gnu/GNUinfo/LGPL
# 
#    The author can be contacted:
# 
#    Gilbert ROBERT
# 
#        E-Mail: Gilbert.Robert@issco.unige.ch    
#        WWW   : http://issco-www.unige.ch/staff/robert/ubt.html

UBTHOME = /usr/local/pck/backup/UBT1.2

.SUFFIXES: .tcl

.tcl:
	rm -f $@
	sed -e 's:/home/robert/tmp1/BACKUP:$(UBTHOME):' $< > $@
	chmod a+x $@

all: ubtool ubtoolcron

clean clean_tools: FORCE
	rm -f *~ *.CKP *.BAK .emacs_[0-9]* core ubtool ubtoolcron

install: ubtool ubtoolcron
	mkdir -p $(UBTHOME)/lib
	mkdir -p $(UBTHOME)/data
	mkdir -p $(UBTHOME)/log
	mkdir -p $(UBTHOME)/images
	mkdir -p $(UBTHOME)/bin
	cp ../lib/* $(UBTHOME)/lib
	cp ../data/* $(UBTHOME)/data
	cp ../images/* $(UBTHOME)/images
	cp ../bin/* $(UBTHOME)/bin

FORCE:
