xref: /freebsd/contrib/bmake/unit-tests/suff-add-later.mk (revision d9a42747950146bf03cda7f6e25d219253f8a57a)
1# $NetBSD: suff-add-later.mk,v 1.2 2020/10/21 08:18:24 rillig Exp $
2#
3# https://gnats.netbsd.org/49086, issue 5:
4# Adding more suffixes does not turn existing rules into suffix rules.
5
6.MAKEFLAGS: -ds
7
8all: issue5a.d issue5b.c issue5c issue5d.e issue5e.d
9
10.SUFFIXES: .c
11
12# At this point, only .c is a suffix, therefore the following are all regular
13# rules.
14.c.d .d.c .d .d.e .e.d:
15	: 'Making ${.TARGET} from ${.IMPSRC}.'
16
17# Adding .d and .e as suffixes should turn the above regular rules into
18# suffix rules.
19.SUFFIXES: .d .e
20
21issue5a.c issue5b.d issue5c.d issue5d.d issue5e.e:
22	: 'Making ${.TARGET} out of nothing.'
23
24# XXX: As of 2020-10-20, the result is unexpected.
25# XXX: .d.c is not a transformation rule but a regular target.
26# XXX: .d is not a transformation rule but a regular target.
27# XXX: .e.d is not a transformation but a regular target.
28# XXX: .c.d is listed as "Files that are only sources".
29# XXX: .d.e is listed as "Files that are only sources".
30# XXX: The suffixes .c and .e both have the number 2.
31# XXX: don't know how to make issue5a.d (even though .c.d is a transformation
32# rule and issue5a.c can be readily made)
33#.MAKEFLAGS: -dg1
34.MAKEFLAGS: -d0
35