opt-debug-parse.mk revision 1.2 1 # $NetBSD: opt-debug-parse.mk,v 1.2 2022/01/02 03:23:55 rillig Exp $
2 #
3 # Tests for the -dp command line option, which adds debug logging about
4 # makefile parsing.
5
6 .MAKEFLAGS: -dp
7
8 # TODO: Implementation
9
10 # In PrintStackTrace, the line number of the .for loop is wrong. The actual
11 # line number printed is the last line before the loop body, while it should
12 # rather be the line number where the .for loop starts.
13 .for \
14 var \
15 in \
16 value
17 .info trace with multi-line .for loop head
18 .endfor
19 # FIXME: The .exp file says 'in .include from opt-debug-parse.mk:18', which is
20 # completely wrong. It should rather say 'in .for loop from :13'.
21
22 .MAKEFLAGS: -d0
23
24 all: .PHONY
25