head 1.5; access; symbols netbsd-11-0-RC4:1.5 netbsd-11-0-RC3:1.5 netbsd-11-0-RC2:1.5 netbsd-11-0-RC1:1.5 perseant-exfatfs-base-20250801:1.5 netbsd-11:1.5.0.2 netbsd-11-base:1.5 netbsd-10-1-RELEASE:1.2 perseant-exfatfs-base-20240630:1.3 perseant-exfatfs:1.3.0.2 perseant-exfatfs-base:1.3 netbsd-10-0-RELEASE:1.2 netbsd-10-0-RC6:1.2 netbsd-10-0-RC5:1.2 netbsd-10-0-RC4:1.2 netbsd-10-0-RC3:1.2 netbsd-10-0-RC2:1.2 netbsd-10-0-RC1:1.2 netbsd-10:1.2.0.6 netbsd-10-base:1.2 cjep_sun2x-base1:1.2 cjep_sun2x:1.2.0.4 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 cjep_staticlib_x:1.2.0.2 cjep_staticlib_x-base:1.2; locks; strict; comment @# @; 1.5 date 2025.06.28.22.39.28; author rillig; state Exp; branches; next 1.4; commitid CDDpACH2g2jV3I0G; 1.4 date 2025.03.30.09.51.50; author rillig; state Exp; branches; next 1.3; commitid veGmSzVhPiW2G4PF; 1.3 date 2023.06.01.20.56.35; author rillig; state Exp; branches 1.3.2.1; next 1.2; commitid j3tIvMRlxolKQhrE; 1.2 date 2020.12.13.01.07.54; author rillig; state Exp; branches; next 1.1; commitid f59P3Vx0FQhPcwzC; 1.1 date 2020.12.13.00.46.25; author rillig; state Exp; branches; next ; commitid 0emUrsunMxDF5wzC; 1.3.2.1 date 2025.08.02.05.58.34; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; desc @@ 1.5 log @make: consistently use double quotes in error messages Previously, some error messages used single quotes, very few used backticks or parentheses, most already used double quotes. While here, reword a few error messages to be clearer or more consistent with related error messages. @ text @make: directive-misspellings.mk:13: Unknown directive "dinclud" make: directive-misspellings.mk:16: Unknown directive "dincludx" make: directive-misspellings.mk:18: .include filename must be delimited by "" or <> make: directive-misspellings.mk:21: Unknown directive "erro" make: directive-misspellings.mk:23: Unknown directive "errox" make: directive-misspellings.mk:28: Unknown directive "expor" make: directive-misspellings.mk:31: Unknown directive "exporx" make: directive-misspellings.mk:33: Unknown directive "exports" make: directive-misspellings.mk:36: Unknown directive "export-en" make: directive-misspellings.mk:40: Unknown directive "export-environment" make: directive-misspellings.mk:43: Unknown directive "export-litera" make: directive-misspellings.mk:46: Unknown directive "export-literax" make: directive-misspellings.mk:48: Unknown directive "export-literally" make: directive-misspellings.mk:51: Unknown directive "-includ" make: directive-misspellings.mk:54: Unknown directive "-includx" make: directive-misspellings.mk:56: .include filename must be delimited by "" or <> make: directive-misspellings.mk:59: Unknown directive "includ" make: directive-misspellings.mk:61: Could not find file make: directive-misspellings.mk:63: Unknown directive "includx" make: directive-misspellings.mk:65: .include filename must be delimited by "" or <> make: directive-misspellings.mk:68: Unknown directive "inf" make: directive-misspellings.mk:70: msg make: directive-misspellings.mk:72: Unknown directive "infx" make: directive-misspellings.mk:74: Unknown directive "infos" make: directive-misspellings.mk:77: Unknown directive "sinclud" make: directive-misspellings.mk:80: Unknown directive "sincludx" make: directive-misspellings.mk:82: .include filename must be delimited by "" or <> make: directive-misspellings.mk:85: Unknown directive "unde" make: directive-misspellings.mk:88: Unknown directive "undex" make: directive-misspellings.mk:90: Unknown directive "undefs" make: directive-misspellings.mk:93: Unknown directive "unexpor" make: directive-misspellings.mk:96: Unknown directive "unexporx" make: directive-misspellings.mk:98: Unknown directive "unexports" make: directive-misspellings.mk:101: Unknown directive "unexport-en" make: directive-misspellings.mk:104: The directive .unexport-env does not take arguments make: directive-misspellings.mk:106: Unknown directive "unexport-enx" make: directive-misspellings.mk:108: Unknown directive "unexport-envs" make: directive-misspellings.mk:111: Unknown directive "warn" make: directive-misspellings.mk:113: Unknown directive "warnin" make: directive-misspellings.mk:115: warning: msg make: directive-misspellings.mk:117: Unknown directive "warninx" make: directive-misspellings.mk:119: Unknown directive "warnings" make: Fatal errors encountered -- cannot continue make: stopped in unit-tests exit status 1 @ 1.4 log @make: use '"filename" line 123' for locations instead of 'filename:123' The format 'filename:123' is commonly used for identifying a location in a file. Text editors recognize it and allow quick navigation through it. The previous format was specific to make and would have required custom support in editors. The new format was already used in stack traces, except for the first line. Now all lines use the same format. @ text @d3 1 a3 1 make: directive-misspellings.mk:18: .include filename must be delimited by '"' or '<' d16 1 a16 1 make: directive-misspellings.mk:56: .include filename must be delimited by '"' or '<' d20 1 a20 1 make: directive-misspellings.mk:65: .include filename must be delimited by '"' or '<' d27 1 a27 1 make: directive-misspellings.mk:82: .include filename must be delimited by '"' or '<' @ 1.3 log @tests/make: force line-based diagnostics to be listed in the tests This way, contradictions between the intended output and the actual output are closer together and have a better chance of being spotted. @ text @d1 42 a42 42 make: "directive-misspellings.mk" line 13: Unknown directive "dinclud" make: "directive-misspellings.mk" line 16: Unknown directive "dincludx" make: "directive-misspellings.mk" line 18: .include filename must be delimited by '"' or '<' make: "directive-misspellings.mk" line 21: Unknown directive "erro" make: "directive-misspellings.mk" line 23: Unknown directive "errox" make: "directive-misspellings.mk" line 28: Unknown directive "expor" make: "directive-misspellings.mk" line 31: Unknown directive "exporx" make: "directive-misspellings.mk" line 33: Unknown directive "exports" make: "directive-misspellings.mk" line 36: Unknown directive "export-en" make: "directive-misspellings.mk" line 40: Unknown directive "export-environment" make: "directive-misspellings.mk" line 43: Unknown directive "export-litera" make: "directive-misspellings.mk" line 46: Unknown directive "export-literax" make: "directive-misspellings.mk" line 48: Unknown directive "export-literally" make: "directive-misspellings.mk" line 51: Unknown directive "-includ" make: "directive-misspellings.mk" line 54: Unknown directive "-includx" make: "directive-misspellings.mk" line 56: .include filename must be delimited by '"' or '<' make: "directive-misspellings.mk" line 59: Unknown directive "includ" make: "directive-misspellings.mk" line 61: Could not find file make: "directive-misspellings.mk" line 63: Unknown directive "includx" make: "directive-misspellings.mk" line 65: .include filename must be delimited by '"' or '<' make: "directive-misspellings.mk" line 68: Unknown directive "inf" make: "directive-misspellings.mk" line 70: msg make: "directive-misspellings.mk" line 72: Unknown directive "infx" make: "directive-misspellings.mk" line 74: Unknown directive "infos" make: "directive-misspellings.mk" line 77: Unknown directive "sinclud" make: "directive-misspellings.mk" line 80: Unknown directive "sincludx" make: "directive-misspellings.mk" line 82: .include filename must be delimited by '"' or '<' make: "directive-misspellings.mk" line 85: Unknown directive "unde" make: "directive-misspellings.mk" line 88: Unknown directive "undex" make: "directive-misspellings.mk" line 90: Unknown directive "undefs" make: "directive-misspellings.mk" line 93: Unknown directive "unexpor" make: "directive-misspellings.mk" line 96: Unknown directive "unexporx" make: "directive-misspellings.mk" line 98: Unknown directive "unexports" make: "directive-misspellings.mk" line 101: Unknown directive "unexport-en" make: "directive-misspellings.mk" line 104: The directive .unexport-env does not take arguments make: "directive-misspellings.mk" line 106: Unknown directive "unexport-enx" make: "directive-misspellings.mk" line 108: Unknown directive "unexport-envs" make: "directive-misspellings.mk" line 111: Unknown directive "warn" make: "directive-misspellings.mk" line 113: Unknown directive "warnin" make: "directive-misspellings.mk" line 115: warning: msg make: "directive-misspellings.mk" line 117: Unknown directive "warninx" make: "directive-misspellings.mk" line 119: Unknown directive "warnings" @ 1.3.2.1 log @Sync with HEAD @ text @d1 42 a42 42 make: directive-misspellings.mk:13: Unknown directive "dinclud" make: directive-misspellings.mk:16: Unknown directive "dincludx" make: directive-misspellings.mk:18: .include filename must be delimited by "" or <> make: directive-misspellings.mk:21: Unknown directive "erro" make: directive-misspellings.mk:23: Unknown directive "errox" make: directive-misspellings.mk:28: Unknown directive "expor" make: directive-misspellings.mk:31: Unknown directive "exporx" make: directive-misspellings.mk:33: Unknown directive "exports" make: directive-misspellings.mk:36: Unknown directive "export-en" make: directive-misspellings.mk:40: Unknown directive "export-environment" make: directive-misspellings.mk:43: Unknown directive "export-litera" make: directive-misspellings.mk:46: Unknown directive "export-literax" make: directive-misspellings.mk:48: Unknown directive "export-literally" make: directive-misspellings.mk:51: Unknown directive "-includ" make: directive-misspellings.mk:54: Unknown directive "-includx" make: directive-misspellings.mk:56: .include filename must be delimited by "" or <> make: directive-misspellings.mk:59: Unknown directive "includ" make: directive-misspellings.mk:61: Could not find file make: directive-misspellings.mk:63: Unknown directive "includx" make: directive-misspellings.mk:65: .include filename must be delimited by "" or <> make: directive-misspellings.mk:68: Unknown directive "inf" make: directive-misspellings.mk:70: msg make: directive-misspellings.mk:72: Unknown directive "infx" make: directive-misspellings.mk:74: Unknown directive "infos" make: directive-misspellings.mk:77: Unknown directive "sinclud" make: directive-misspellings.mk:80: Unknown directive "sincludx" make: directive-misspellings.mk:82: .include filename must be delimited by "" or <> make: directive-misspellings.mk:85: Unknown directive "unde" make: directive-misspellings.mk:88: Unknown directive "undex" make: directive-misspellings.mk:90: Unknown directive "undefs" make: directive-misspellings.mk:93: Unknown directive "unexpor" make: directive-misspellings.mk:96: Unknown directive "unexporx" make: directive-misspellings.mk:98: Unknown directive "unexports" make: directive-misspellings.mk:101: Unknown directive "unexport-en" make: directive-misspellings.mk:104: The directive .unexport-env does not take arguments make: directive-misspellings.mk:106: Unknown directive "unexport-enx" make: directive-misspellings.mk:108: Unknown directive "unexport-envs" make: directive-misspellings.mk:111: Unknown directive "warn" make: directive-misspellings.mk:113: Unknown directive "warnin" make: directive-misspellings.mk:115: warning: msg make: directive-misspellings.mk:117: Unknown directive "warninx" make: directive-misspellings.mk:119: Unknown directive "warnings" @ 1.2 log @make(1): error out on misspelled directives Before, make accepted misspellings like .warnings, .export-literally and a few others, all of which are unlikely to occur in practice. See the test directive-misspellings.mk for further details. @ text @d1 42 a42 42 make: "directive-misspellings.mk" line 12: Unknown directive "dinclud" make: "directive-misspellings.mk" line 14: Unknown directive "dincludx" make: "directive-misspellings.mk" line 15: .include filename must be delimited by '"' or '<' make: "directive-misspellings.mk" line 17: Unknown directive "erro" make: "directive-misspellings.mk" line 18: Unknown directive "errox" make: "directive-misspellings.mk" line 22: Unknown directive "expor" make: "directive-misspellings.mk" line 24: Unknown directive "exporx" make: "directive-misspellings.mk" line 25: Unknown directive "exports" make: "directive-misspellings.mk" line 27: Unknown directive "export-en" make: "directive-misspellings.mk" line 30: Unknown directive "export-environment" make: "directive-misspellings.mk" line 32: Unknown directive "export-litera" make: "directive-misspellings.mk" line 34: Unknown directive "export-literax" make: "directive-misspellings.mk" line 35: Unknown directive "export-literally" make: "directive-misspellings.mk" line 37: Unknown directive "-includ" make: "directive-misspellings.mk" line 39: Unknown directive "-includx" make: "directive-misspellings.mk" line 40: .include filename must be delimited by '"' or '<' make: "directive-misspellings.mk" line 42: Unknown directive "includ" make: "directive-misspellings.mk" line 43: Could not find file make: "directive-misspellings.mk" line 44: Unknown directive "includx" make: "directive-misspellings.mk" line 45: .include filename must be delimited by '"' or '<' make: "directive-misspellings.mk" line 47: Unknown directive "inf" make: "directive-misspellings.mk" line 48: msg make: "directive-misspellings.mk" line 49: Unknown directive "infx" make: "directive-misspellings.mk" line 50: Unknown directive "infos" make: "directive-misspellings.mk" line 52: Unknown directive "sinclud" make: "directive-misspellings.mk" line 54: Unknown directive "sincludx" make: "directive-misspellings.mk" line 55: .include filename must be delimited by '"' or '<' make: "directive-misspellings.mk" line 57: Unknown directive "unde" make: "directive-misspellings.mk" line 59: Unknown directive "undex" make: "directive-misspellings.mk" line 60: Unknown directive "undefs" make: "directive-misspellings.mk" line 62: Unknown directive "unexpor" make: "directive-misspellings.mk" line 64: Unknown directive "unexporx" make: "directive-misspellings.mk" line 65: Unknown directive "unexports" make: "directive-misspellings.mk" line 67: Unknown directive "unexport-en" make: "directive-misspellings.mk" line 69: The directive .unexport-env does not take arguments make: "directive-misspellings.mk" line 70: Unknown directive "unexport-enx" make: "directive-misspellings.mk" line 71: Unknown directive "unexport-envs" make: "directive-misspellings.mk" line 73: Unknown directive "warn" make: "directive-misspellings.mk" line 74: Unknown directive "warnin" make: "directive-misspellings.mk" line 75: warning: msg make: "directive-misspellings.mk" line 76: Unknown directive "warninx" make: "directive-misspellings.mk" line 77: Unknown directive "warnings" @ 1.1 log @make(1): add test for misspelled directives This test allows the other directive-* tests to focus on the purpose of the individual directive, allowing these tests to continue after parsing, without errors. @ text @d8 6 d24 1 a24 1 make: "directive-misspellings.mk" line 50: msg d30 1 d33 1 a33 1 make: "directive-misspellings.mk" line 65: Unknown directive "unexports varname" d42 1 a42 1 make: "directive-misspellings.mk" line 77: warning: msg @