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