diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-01-08 21:04:08 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-01-08 21:04:08 (GMT) |
commit | 6dac183be1cdcc0a13966343e2c40c3ff56a3810 (patch) | |
tree | 802a6a87435da647463c945cf3571d52a84aad55 /tkimg/win/install-lib.vc | |
parent | dbbb38af9cefef9e9e1a03c97945ee59063aa782 (diff) | |
download | blt-6dac183be1cdcc0a13966343e2c40c3ff56a3810.zip blt-6dac183be1cdcc0a13966343e2c40c3ff56a3810.tar.gz blt-6dac183be1cdcc0a13966343e2c40c3ff56a3810.tar.bz2 |
update tkimg 1.4.7
Diffstat (limited to 'tkimg/win/install-lib.vc')
-rw-r--r-- | 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 100644 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 |