1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
## This is the installation makefile for tkchooser2.
## 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
LIBDIR = $(INSTALLROOT)/lib/tkchooser
BINDIR = $(INSTALLROOT)/bin
## point these variables to where you want
## the documentation installed.
DOCROOT = /usr/doc
DOCDIR = $(DOCROOT)/tkchooser
############### Do Not modify below this line ################
PROGRAM = tkchooser2.tcl
LINKNAME = tkchooser
MODULES = appletalk.tcl smb.tcl ip.tcl misc.tcl fileselect.tcl alpr.tcl
SUBDIRS = plugins icons etc
DOCS = README INSTALL API_Description VERSION
build:
@echo ""
@echo "Read the INSTALL document that came with the distribution."
@echo "and follow those instructions."
@echo ""
@echo "Then run \"make install\" (as root, if necessary) to install the"
@echo "package in $(LIBDIR)."
@echo ""
@echo "Then run \"make installdoc\" to"
@echo "install the documentation in $(DOCDIR)."
@echo ""
config:
mv -f $(PROGRAM) $(PROGRAM).bak
./config.tcl $(PROGRAM).bak $(PROGRAM) $(LIBDIR)
chmod 755 $(PROGRAM)
mv -f alpr.tcl alpr.tcl.bak
./config.tcl alpr.tcl.bak alpr.tcl $(LIBDIR)
chmod 755 alpr.tcl
install:
mkdir -p $(PREFIX)/$(LIBDIR) $(PREFIX)/$(BINDIR) $(PREFIX)/etc
cp -f chooser.cfg $(PREFIX)/etc
cp -f $(PROGRAM) $(MODULES) $(PREFIX)/$(LIBDIR)
cp -Rf $(SUBDIRS) $(PREFIX)/$(LIBDIR)
ln -s ../lib/tkchooser/$(PROGRAM) $(PREFIX)/$(BINDIR)/$(LINKNAME)
ln -s ../lib/tkchooser/alpr.tcl $(PREFIX)/$(BINDIR)/alpr
installdoc:
mkdir -p $(DOCDIR)
cp -f $(DOCS) $(DOCDIR)
clean:
mv -f $(PROGRAM).bak $(PROGRAM)
mv -f alpr.tcl.bak alpr.tcl
|