xref: /freebsd/contrib/bmake/unit-tests/var-readonly.mk (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
1# $NetBSD: var-readonly.mk,v 1.3 2023/06/19 15:37:48 sjg Exp $
2
3# the answer
4N = 42
5.READONLY: N
6# this should be ignored
7N = 666
8.if ${N} != 42
9.error N ($N) should be 42
10.endif
11
12# undef should fail
13.undef N
14.ifndef N
15.error N should not be undef'd
16.endif
17
18.NOREADONLY: N
19# now we can change it
20N = 69
21.if ${N} == 42
22.error N should not be 42
23.endif
24
25all:
26