summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2025-05-18 15:53:31 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2025-05-18 15:53:31 (GMT)
commita2080b337816439027a6757c0d3e1e7a68b92842 (patch)
tree30cd8881e4fe1cc1a2d1231550537627c50d5c05
parent40a88a72aafc8ae3326e2fab22d84b7313b48e72 (diff)
downloadtcl-a2080b337816439027a6757c0d3e1e7a68b92842.zip
tcl-a2080b337816439027a6757c0d3e1e7a68b92842.tar.gz
tcl-a2080b337816439027a6757c0d3e1e7a68b92842.tar.bz2
Bug [3335120320]. Fix for case where extension is installed into a directory other than where Tcl is installedcore-apn-bug-3335120320
-rw-r--r--win/rules.vc3
-rw-r--r--win/targets.vc1
2 files changed, 3 insertions, 1 deletions
diff --git a/win/rules.vc b/win/rules.vc
index 414e85c..0b47765 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -24,7 +24,7 @@ _RULES_VC = 1
# For modifications that are not backward-compatible, you *must* change
# the major version.
RULES_VERSION_MAJOR = 1
-RULES_VERSION_MINOR = 14
+RULES_VERSION_MINOR = 15
# The PROJECT macro must be defined by parent makefile.
!if "$(PROJECT)" == ""
@@ -1690,6 +1690,7 @@ default-install-libraries: default-install-scripts
default-install-scripts: $(OUT_DIR)\pkgIndex.tcl
@echo Installing libraries to '$(SCRIPT_INSTALL_DIR)'
+ @if not exist "$(SCRIPT_INSTALL_DIR)" mkdir "$(SCRIPT_INSTALL_DIR)"
@if exist $(LIBDIR) $(CPY) $(LIBDIR)\*.tcl "$(SCRIPT_INSTALL_DIR)"
@echo Installing package index in '$(SCRIPT_INSTALL_DIR)'
@$(CPY) $(OUT_DIR)\pkgIndex.tcl $(SCRIPT_INSTALL_DIR)
diff --git a/win/targets.vc b/win/targets.vc
index 077e8f7..08f8441 100644
--- a/win/targets.vc
+++ b/win/targets.vc
@@ -53,6 +53,7 @@ default-install: default-install-stubs
default-install: default-install-headers
default-install-headers:
@echo Installing headers to '$(INCLUDE_INSTALL_DIR)'
+ @if not exist "$(INCLUDE_INSTALL_DIR)" $(MKDIR) "$(INCLUDE_INSTALL_DIR)"
@for %f in ($(PRJ_HEADERS_PUBLIC)) do @$(COPY) %f "$(INCLUDE_INSTALL_DIR)"
!endif