Fossil SCM
Make sure the MSVC makefile is only used from within the directory where it resides.
Commit
86de8cbeb505eda64453138fdf6876f9cff520ba
Parent
67356700e000fee…
2 files changed
+9
+9
+9
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -1145,10 +1145,19 @@ | ||
| 1145 | 1145 | |
| 1146 | 1146 | writeln {# |
| 1147 | 1147 | ############################################################################## |
| 1148 | 1148 | # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl") |
| 1149 | 1149 | ############################################################################## |
| 1150 | +# | |
| 1151 | +# This Makefile will only function correctly if used from the directory it | |
| 1152 | +# is contained in. Therefore, attempt to detect when that is not the case | |
| 1153 | +# and issue an error message. | |
| 1154 | +# | |
| 1155 | +!if !exist("Makefile.msc") | |
| 1156 | +!error "Please change the current directory to the one containing this file." | |
| 1157 | +!endif | |
| 1158 | + | |
| 1150 | 1159 | # |
| 1151 | 1160 | # This file is automatically generated. Instead of editing this |
| 1152 | 1161 | # file, edit "makemake.tcl" then run "tclsh makemake.tcl" |
| 1153 | 1162 | # to regenerate this file. |
| 1154 | 1163 | # |
| 1155 | 1164 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -1145,10 +1145,19 @@ | |
| 1145 | |
| 1146 | writeln {# |
| 1147 | ############################################################################## |
| 1148 | # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl") |
| 1149 | ############################################################################## |
| 1150 | # |
| 1151 | # This file is automatically generated. Instead of editing this |
| 1152 | # file, edit "makemake.tcl" then run "tclsh makemake.tcl" |
| 1153 | # to regenerate this file. |
| 1154 | # |
| 1155 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -1145,10 +1145,19 @@ | |
| 1145 | |
| 1146 | writeln {# |
| 1147 | ############################################################################## |
| 1148 | # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl") |
| 1149 | ############################################################################## |
| 1150 | # |
| 1151 | # This Makefile will only function correctly if used from the directory it |
| 1152 | # is contained in. Therefore, attempt to detect when that is not the case |
| 1153 | # and issue an error message. |
| 1154 | # |
| 1155 | !if !exist("Makefile.msc") |
| 1156 | !error "Please change the current directory to the one containing this file." |
| 1157 | !endif |
| 1158 | |
| 1159 | # |
| 1160 | # This file is automatically generated. Instead of editing this |
| 1161 | # file, edit "makemake.tcl" then run "tclsh makemake.tcl" |
| 1162 | # to regenerate this file. |
| 1163 | # |
| 1164 |
+9
| --- win/Makefile.msc | ||
| +++ win/Makefile.msc | ||
| @@ -1,9 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | 2 | ############################################################################## |
| 3 | 3 | # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl") |
| 4 | 4 | ############################################################################## |
| 5 | +# | |
| 6 | +# This Makefile will only function correctly if used from the directory it | |
| 7 | +# is contained in. Therefore, attempt to detect when that is not the case | |
| 8 | +# and issue an error message. | |
| 9 | +# | |
| 10 | +!if !exist("Makefile.msc") | |
| 11 | +!error "Please change the current directory to the one containing this file." | |
| 12 | +!endif | |
| 13 | + | |
| 5 | 14 | # |
| 6 | 15 | # This file is automatically generated. Instead of editing this |
| 7 | 16 | # file, edit "makemake.tcl" then run "tclsh makemake.tcl" |
| 8 | 17 | # to regenerate this file. |
| 9 | 18 | # |
| 10 | 19 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -1,9 +1,18 @@ | |
| 1 | # |
| 2 | ############################################################################## |
| 3 | # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl") |
| 4 | ############################################################################## |
| 5 | # |
| 6 | # This file is automatically generated. Instead of editing this |
| 7 | # file, edit "makemake.tcl" then run "tclsh makemake.tcl" |
| 8 | # to regenerate this file. |
| 9 | # |
| 10 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -1,9 +1,18 @@ | |
| 1 | # |
| 2 | ############################################################################## |
| 3 | # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl") |
| 4 | ############################################################################## |
| 5 | # |
| 6 | # This Makefile will only function correctly if used from the directory it |
| 7 | # is contained in. Therefore, attempt to detect when that is not the case |
| 8 | # and issue an error message. |
| 9 | # |
| 10 | !if !exist("Makefile.msc") |
| 11 | !error "Please change the current directory to the one containing this file." |
| 12 | !endif |
| 13 | |
| 14 | # |
| 15 | # This file is automatically generated. Instead of editing this |
| 16 | # file, edit "makemake.tcl" then run "tclsh makemake.tcl" |
| 17 | # to regenerate this file. |
| 18 | # |
| 19 |