xref: /freebsd/contrib/bmake/unit-tests/var-readonly.mk (revision 2008043f386721d58158e37e0d7e50df8095942d)
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