1 1.7 rillig # $NetBSD: directive-endif.mk,v 1.7 2023/06/01 20:56:35 rillig Exp $ 2 1.1 rillig # 3 1.2 rillig # Tests for the .endif directive. 4 1.3 rillig # 5 1.5 rillig # Since 2020-12-15, the .endif directive no longer accepts arguments. 6 1.5 rillig # The manual page had never allowed that, but the code didn't check it. 7 1.5 rillig # 8 1.3 rillig # See also: 9 1.3 rillig # Cond_EvalLine 10 1.1 rillig 11 1.3 rillig .MAKEFLAGS: -dL 12 1.3 rillig 13 1.3 rillig .if 0 14 1.6 rillig # Since 2020-12-15: 15 1.6 rillig # expect+1: The .endif directive does not take arguments 16 1.3 rillig .endif 0 17 1.3 rillig 18 1.3 rillig .if 1 19 1.6 rillig # Since 2020-12-15: 20 1.6 rillig # expect+1: The .endif directive does not take arguments 21 1.3 rillig .endif 1 22 1.3 rillig 23 1.3 rillig # Comments are allowed after an '.endif'. 24 1.3 rillig .if 2 25 1.3 rillig .endif # comment 26 1.3 rillig 27 1.4 rillig # Only whitespace and comments are allowed after an '.endif', but nothing 28 1.4 rillig # else. 29 1.4 rillig .if 1 30 1.6 rillig # Since 2020-12-15: 31 1.6 rillig # expect+1: The .endif directive does not take arguments 32 1.4 rillig .endif0 33 1.4 rillig 34 1.4 rillig # Only whitespace and comments are allowed after an '.endif', but nothing 35 1.4 rillig # else. 36 1.4 rillig .if 1 37 1.6 rillig # Since 2020-12-15: 38 1.6 rillig # expect+1: The .endif directive does not take arguments 39 1.4 rillig .endif/ 40 1.4 rillig 41 1.6 rillig # After an '.endif', no other letter must occur. 42 1.4 rillig .if 1 43 1.6 rillig # expect+1: Unknown directive "endifx" 44 1.4 rillig .endifx 45 1.6 rillig .endif # to close the preceding '.if' 46