X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=tcl%2FMakefile.am;h=daae713a503834c51c8b5ca10b24e6708ecb6b62;hb=ad6458c0bb78a96fdf5c926355b39e08944f7e5c;hp=5800a0c044c44a75c7e970748f01ed042bb38892;hpb=c5a9bf19ca03b1c193bc8413b1332e2ed499e280;p=oss%2Ffgis.git diff --git a/tcl/Makefile.am b/tcl/Makefile.am index 5800a0c..daae713 100644 --- a/tcl/Makefile.am +++ b/tcl/Makefile.am @@ -19,4 +19,38 @@ ## Process this file with automake to produce Makefile.in. +bin_SCRIPTS = hypermap mapview +SCRIPT_LIST = admin.layer balloonhelp.tcl calculator.tcl combobox.tcl console.tcl draw.tcl getopt.tcl help.tcl hierarchy.tcl html_library.tcl layer.tcl legend.tcl lesras.lay objects.tcl planchet.tcl progressbar.tcl tabnotebook.tcl tclIndex toolbar.tcl ventry.tcl viewer.tcl widget.tcl +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