+EXTRA_DIST = $(bin_SCRIPTS) $(SCRIPT_LIST)
+
+install: all install-binaries install-libraries
+
+install-binaries:
+ $(mkinstalldirs) $(bindir)
+ -for i in $(bin_SCRIPTS) ; do \
+ if [ -f $$i ] ; then \
+ $(INSTALL_PROGRAM) $$i $(bindir)/$$i ; \
+ else true; fi ; \
+ done
+
+install-libraries:
+ $(mkinstalldirs) $(FGIS_SCRIPTDIR)
+ -for i in $(SCRIPT_LIST) ; do \
+ if [ -f $$i ] ; then \
+ $(INSTALL_PROGRAM) -m 644 $$i $(FGIS_SCRIPTDIR)/$$i ; \
+ else true; fi ; \
+ done
+ $(mkinstalldirs) $(TCL_PACKAGE_PATH)/fgis
+ if [ -f pkgIndex.tcl ] ; then \
+ $(INSTALL_PROGRAM) -m 644 pkgIndex.tcl $(TCL_PACKAGE_PATH)/fgis/pkgIndex.tcl ; \
+ else true; fi
+
+uninstall:
+ -for i in $(bin_SCRIPTS) ; do \
+ rm -f $(bindir)/$$i ; \
+ done
+ -for i in $(SCRIPT_LIST) ; do \
+ rm -f $(FGIS_SCRIPTDIR)/$$i ; \
+ done
+ -rm -f $(TCL_PACKAGE_PATH)/fgis/pkgIndex.tcl