1 # $NetBSD: directive-if-nested.mk,v 1.2 2025/01/03 05:00:37 rillig Exp $ 2 # 3 # Tests for deeply nested .if directives. By default, memory for 128 nested 4 # .if directives is pre-allocated, any deeper nesting is reallocated. 5 # 6 # See also: 7 # Cond_EvalLine 8 9 GEN= directive-if-nested.inc 10 11 all: set-up test tear-down 12 13 set-up: .PHONY 14 @{ printf '.if %s\n' ${:U:range=1000}; \ 15 printf '.info deeply nested .if directives\n'; \ 16 printf '.endif # %s\n' ${:U:range=1000:[-1..1]}; \ 17 printf '\n'; \ 18 printf 'all:\n'; \ 19 } > ${GEN} 20 21 test: .PHONY 22 @${MAKE} -f ${GEN} 23 24 tear-down: .PHONY 25 @rm -f ${GEN} 26