directive-misspellings.mk revision 1.1
1# $NetBSD: directive-misspellings.mk,v 1.1 2020/12/13 00:46:25 rillig Exp $ 2# 3# Tests for misspelled directives. 4# 5# Before 2020-12-12, make didn't catch most of these misspellings. For 6# example, the directive ".exporting" was interpreted as if it were spelled 7# ".export ing", which would export the variable named "ing" if that existed. 8# Another misspelling, as improbable as the others, was that both ".infos" and 9# ".information" were aliases to ".info" since the code for these diagnostic 10# directives just skipped any letters following the "error", "warn" or "info". 11 12.dinclud "file" 13.dinclude "file" 14.dincludx "file" 15.dincludes "file" # XXX: the 's' is not meant to be a filename 16 17.erro msg 18.errox msg 19# no .error since that would exit immediately 20# no .errors since that would exit immediately, even with the typo 21 22.expor varname 23.export varname 24.exporx varname 25.exports varname # XXX: undetected misspelling 26 27.export-en # XXX: undetected misspelling 28.export-env 29.export-env extra argument # XXX: undetected extra argument 30.export-environment # XXX: undetected misspelling 31 32.export-litera varname # XXX: undetected misspelling 33.export-literal varname 34.export-literax varname # XXX: undetected misspelling 35.export-literally varname # XXX: undetected misspelling 36 37.-includ "file" 38.-include "file" 39.-includx "file" 40.-includes "file" # XXX: the 's' is not meant to be a filename 41 42.includ "file" 43.include "file" 44.includx "file" 45.includex "file" # XXX: the 's' is not meant to be a filename 46 47.inf msg 48.info msg 49.infx msg 50.infos msg # XXX: undetected misspelling 51 52.sinclud "file" 53.sinclude "file" 54.sincludx "file" 55.sincludes "file" # XXX: the 's' is not meant to be a filename 56 57.unde varname 58.undef varname 59.undex varname 60.undefs varname # XXX: undetected misspelling 61 62.unexpor varname 63.unexport varname 64.unexporx varname 65.unexports varname # Accepted before 2020-12-12 18:00:18. 66 67.unexport-en # Accepted before 2020-12-12 18:11:42. 68.unexport-env 69.unexport-env extra argument # Accepted before 2020-12-12 18:00:18. 70.unexport-enx # Accepted before 2020-12-12 18:00:18. 71.unexport-envs # Accepted before 2020-12-12 18:00:18. 72 73.warn msg 74.warnin msg 75.warning msg 76.warninx msg 77.warnings msg # XXX: undetected misspelling 78 79all: 80