1 # $NetBSD: directive-info.mk,v 1.8 2020/12/19 22:33:11 rillig Exp $
3 # Tests for the .info directive.
5 # Until parse.c 1.502 from 2020-12-19, a missing argument to the directive
6 # produced the wrong error message "Unknown directive". Since parse.c 1.503
7 # from 2020-12-19, the correct "Missing argument" is produced.
11 .info begin .info tests
13 .info # "Missing argument"
15 .info indented message
17 .information message # Accepted before 2020-12-13 01:07:54.
18 .info.man: # not a message, but possibly a suffix rule
20 # Even if lines would have trailing whitespace, this would be trimmed by
25 .info: message # This is a dependency declaration.
26 .info-message # This is an unknown directive.
27 .info no-target: no-source # This is a .info directive, not a dependency.
28 # See directive.mk for more tests of this kind.
30 # Since at least 2002-01-01, the line number that is used in error messages
31 # and the .info directives is the number of completely read lines. For the
32 # following multi-line directive, this means that the reported line number is
33 # the one of the last line, not the first line.
34 .info expect line 30 for\