diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-03-20 17:30:33 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-03-20 17:30:33 (GMT) |
commit | 54d971086f3a99dd7c9552fbe07f589f43bf439c (patch) | |
tree | 53969f74e5aef27e572e5db2af98a54b15e0a6a4 /tkimg/win/install-lib.vc | |
parent | cfef685ad45bc8f98a2d59fba75ba9bc6e06496d (diff) | |
download | blt-54d971086f3a99dd7c9552fbe07f589f43bf439c.zip blt-54d971086f3a99dd7c9552fbe07f589f43bf439c.tar.gz blt-54d971086f3a99dd7c9552fbe07f589f43bf439c.tar.bz2 |
upgrade tkimg 1.4.9
Diffstat (limited to 'tkimg/win/install-lib.vc')
-rwxr-xr-x | tkimg/win/install-lib.vc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tkimg/win/install-lib.vc b/tkimg/win/install-lib.vc new file mode 100755 index 0000000..9ccccd0 --- /dev/null +++ b/tkimg/win/install-lib.vc @@ -0,0 +1,35 @@ +# Common include file for the supporting libraries like libjpeg. + +# We do not want to use the built-in default install target as we +# need a custom one as described below. +DISABLE_TARGET_install = 1 +!include "$(_RULESDIR)\targets.vc" + +# Special install targets to install all DLL's into the main img directory +# When a component is build by itself, e.g. png, it will install into the +# directory named after the component. When installed through the "master" +# Img makefile, it installs in the Img directory. The Following takes +# care of the details. +!ifdef TKIMG_INSTALL_SUBDIR +IMG_INSTALL_DIR = $(_INSTALLDIR)\$(TKIMG_INSTALL_SUBDIR) +!else +IMG_INSTALL_DIR = $(SCRIPT_INSTALL_DIR) +!endif +install: $(OUT_DIR)\pkgIndex.tcl + @echo Installing binaries to '$(IMG_INSTALL_DIR)' + @if not exist "$(IMG_INSTALL_DIR)" mkdir "$(IMG_INSTALL_DIR)" + @$(CPY) $(PRJLIB) "$(IMG_INSTALL_DIR)" >NUL + @echo Installing stubs library to '$(IMG_INSTALL_DIR)' + @if not exist "$(IMG_INSTALL_DIR)" mkdir "$(IMG_INSTALL_DIR)" + @$(CPY) $(PRJSTUBLIB) "$(IMG_INSTALL_DIR)" >NUL + @echo Installing libraries to '$(IMG_INSTALL_DIR)' + @if exist $(LIBDIR) $(CPY) $(LIBDIR)\*.tcl "$(IMG_INSTALL_DIR)" +!ifdef TKIMG_INSTALL_SUBDIR + @echo Adding package index to '$(IMG_INSTALL_DIR)\pkgIndex.tcl' + @type $(OUT_DIR)\pkgIndex.tcl >> "$(IMG_INSTALL_DIR)\pkgIndex.tcl" +!else + @echo Installing package index in '$(IMG_INSTALL_DIR)' + @$(CPY) $(OUT_DIR)\pkgIndex.tcl $(IMG_INSTALL_DIR) +!endif + +pkgindex: default-pkgindex
\ No newline at end of file |