directive-info.mk revision 1.7 1 # $NetBSD: directive-info.mk,v 1.7 2020/12/19 12:40:00 rillig Exp $
2 #
3 # Tests for the .info directive.
4
5 # TODO: Implementation
6
7 .info begin .info tests
8 .inf # misspelled
9 .info # oops: message should be "missing parameter"
10 .info message
11 .info indented message
12 .information
13 .information message # Accepted before 2020-12-13 01:07:54.
14 .info.man: # not a message, but possibly a suffix rule
15
16 # Even if lines would have trailing whitespace, this would be trimmed by
17 # ParseGetLine.
18 .info
19 .info # comment
20
21 .info: message # This is a dependency declaration.
22 .info-message # This is an unknown directive.
23 .info no-target: no-source # This is a .info directive, not a dependency.
24 # See directive.mk for more tests of this kind.
25
26 # Since at least 2002-01-01, the line number that is used in error messages
27 # and the .info directives is the number of completely read lines. For the
28 # following multi-line directive, this means that the reported line number is
29 # the one of the last line, not the first line.
30 .info expect line 30 for\
31 multi$\
32 -line message
33
34 all:
35 @:;
36