]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/suff-clear-regular.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / suff-clear-regular.mk
1 # $NetBSD: suff-clear-regular.mk,v 1.1 2020/10/20 20:36:53 rillig Exp $
2 #
3 # https://gnats.netbsd.org/49086, issue 4:
4 # Suffix rules do not become regular rules when .SUFFIXES is cleared.
5
6 all: .a .a.b .b.a
7
8 .SUFFIXES: .a .b .c
9
10 # At this point, .a and .b are known suffixes, therefore the following
11 # targets are interpreted as transformation rules.
12 .a .a.b .b.a:
13         : 'Making ${.TARGET} from ${.IMPSRC}.'
14
15 # The empty .SUFFIXES discards all previous suffixes.
16 # This means the above rules should be turned into regular targets.
17 .SUFFIXES:
18
19 # XXX: As of 2020-10-20, the result is unexpected.
20 # XXX: .a.b is still a transformation rule.
21 # XXX: .a belongs to "Files that are only sources".
22 # XXX: .a.b belongs to "Files that are only sources".
23 # XXX: .b.a belongs to "Files that are only sources".
24 # XXX: .a is listed in "Transformations".
25 # XXX: .a.b is listed in "Transformations".
26 # XXX: .b.a is listed in "Transformations".
27 # XXX: don't know how to make .a
28 # XXX: don't know how to make .a.b
29 # XXX: don't know how to make .b.a
30 # XXX: exit status 0
31 #.MAKEFLAGS: -dg1