## This is the installation makefile for tkArchive.

## Set these variables to point to where you
## want tkchooser installed. You can point to
## the distribution directory if you want to
## run it in place.
INSTALLROOT = /usr/local
LIBDIR = $(INSTALLROOT)/lib/tkArchive
BINDIR = $(INSTALLROOT)/bin

## point these variables to where you want
## the documentation installed.
DOCROOT = /usr/local/doc
DOCDIR = $(DOCROOT)/tkArchive

############### Do Not modify below this line ################
PROGRAM = tkArchive.tcl
LINKNAME = tkArchive
MODULES = tkArchive.config
SUBDIRS = plugins

DOCS = README API.txt VERSION tkArchive.html

build:	
	@echo ""
	@echo "Read the INSTALL document that came with the distribution."
	@echo ""
	@echo "Rename your current $(LIBDIR) to $(LIBDIR).bak"
	@echo "or something and then run \"make install\" to install the"
	@echo "package in $(LIBDIR)."
	@echo ""
	@echo "Then run \"make installdoc\" to"
	@echo "install the documentation in $(DOCDIR)."
	@echo ""

install:	
	chmod 755 $(PROGRAM)
	mkdir $(LIBDIR)
	cp -f $(PROGRAM) $(MODULES) $(LIBDIR)
	cp -Rf $(SUBDIRS) $(LIBDIR)
	rm -f $(BINDIR)/$(LINKNAME)
	ln -s $(LIBDIR)/$(PROGRAM) $(BINDIR)/$(LINKNAME)


installdoc:	
	mkdir $(DOCDIR)
	cp -f $(DOCS) $(DOCDIR)

clean:
	mv -f $(PROGRAM).bak $(PROGRAM)





