summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2017-11-17 07:05:23 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2017-11-17 07:05:23 (GMT)
commit5560b9198b6cdd785cf9d82301a7fff87c0c8c1f (patch)
treef4994d7095fdc67c69be633c2442c186835682bc /win
parent51319d2caea0e5bcc5b852171ddbc85901c6f845 (diff)
downloadtcl-5560b9198b6cdd785cf9d82301a7fff87c0c8c1f.zip
tcl-5560b9198b6cdd785cf9d82301a7fff87c0c8c1f.tar.gz
tcl-5560b9198b6cdd785cf9d82301a7fff87c0c8c1f.tar.bz2
Check for existence of targets.vc, not rules.vc to determine nmake support dir.
Diffstat (limited to 'win')
-rw-r--r--win/rules-ext.vc11
1 files changed, 6 insertions, 5 deletions
diff --git a/win/rules-ext.vc b/win/rules-ext.vc
index ec84464..abaaed6 100644
--- a/win/rules-ext.vc
+++ b/win/rules-ext.vc
@@ -45,13 +45,14 @@ _RULESDIR = ..\..\tcl
!endif # ifndef TCLDIR
-# Now look for the rules.vc file under the Tcl root
-!if exist("$(_RULESDIR)\lib\nmake\rules.vc") # Building against installed Tcl
+# Now look for the targets.vc file under the Tcl root. Note we check this
+# file and not rules.vc because the latter also exists on older systems.
+!if exist("$(_RULESDIR)\lib\nmake\targets.vc") # Building against installed Tcl
_RULESDIR = $(_RULESDIR)\lib\nmake
-!elseif exist("$(_RULESDIR)\win\rules.vc") # Building against Tcl sources
+!elseif exist("$(_RULESDIR)\win\targets.vc") # Building against Tcl sources
_RULESDIR = $(_RULESDIR)\win
!else
-# If we have not located Tcl's rules file, most likely we are compiling
+# If we have not located Tcl's targets file, most likely we are compiling
# against an older version of Tcl and so must use our own support files.
_RULESDIR = .
!endif
@@ -102,7 +103,7 @@ NMAKEHLPC = $(_RULESDIR)\nmakehlp.c
!message *** Using $(_RULESDIR)\rules.vc
!include "$(_RULESDIR)\rules.vc"
!else
-!error *** Could not locate rules.vc
+!error *** Could not locate rules.vc in $(_RULESDIR)
!endif
!endif # _RULES_EXT_VC \ No newline at end of file