xref: /freebsd/contrib/bmake/unit-tests/suff-transform-select.mk (revision 956e45f6fb3e18b8e89b1341708db60c30bb9f27)
1# $NetBSD: suff-transform-select.mk,v 1.1 2020/10/20 20:36:53 rillig Exp $
2#
3# https://gnats.netbsd.org/49086, issue 10:
4# Explicit dependencies affect transformation rule selection.
5#
6# If issue10.e is wanted and both issue10.d and issue10.f are available,
7# make should choose the .d.e rule, because .d is before .f in .SUFFIXES.
8# The bug was that if issue10.d had an explicit dependency on issue10.f,
9# it would choose .f.e instead.
10
11_!=	rm -f issue10.*
12
13all: issue10.e
14
15.c.d .d.c .d .d.e .e.d:
16	: 'Making ${.TARGET} from ${.IMPSRC} (first set).'
17
18.SUFFIXES: .c .d .e .f .g
19
20.e .e.f .f.e:
21	: 'Making ${.TARGET} from ${.IMPSRC} (second set).'
22
23issue10.d issue10.f:
24	: 'Making ${.TARGET} out of nothing.'
25
26# XXX: see suff-bug-endless, which must be fixed first.
27#.MAKEFLAGS: -dg1
28.error prevent endless loop
29