xref: /freebsd/contrib/bmake/unit-tests/suff-transform-expand.mk (revision 956e45f6fb3e18b8e89b1341708db60c30bb9f27)
1*956e45f6SSimon J. Gerraty# $NetBSD: suff-transform-expand.mk,v 1.1 2020/10/20 20:36:53 rillig Exp $
2*956e45f6SSimon J. Gerraty#
3*956e45f6SSimon J. Gerraty# https://gnats.netbsd.org/49086, issue 11:
4*956e45f6SSimon J. Gerraty# Sources from transformation rules are expanded incorrectly.
5*956e45f6SSimon J. Gerraty#
6*956e45f6SSimon J. Gerraty# issue11.j should depend on issue11.i and issue11.second.
7*956e45f6SSimon J. Gerraty# issue11.i should depend on issue11.h and issue11.first.
8*956e45f6SSimon J. Gerraty#
9*956e45f6SSimon J. Gerraty# XXX: The dynamic sources are expanded before ${.PREFIX} and
10*956e45f6SSimon J. Gerraty# ${.TARGET} were available, so they expand to an empty string.
11*956e45f6SSimon J. Gerraty
12*956e45f6SSimon J. Gerratyall: issue11.j
13*956e45f6SSimon J. Gerraty
14*956e45f6SSimon J. Gerraty.SUFFIXES: .h .i .j
15*956e45f6SSimon J. Gerraty
16*956e45f6SSimon J. Gerraty.h.i: ${.PREFIX}.first
17*956e45f6SSimon J. Gerraty	: 'Making ${.TARGET} from ${.IMPSRC} all ${.ALLSRC}.'
18*956e45f6SSimon J. Gerraty
19*956e45f6SSimon J. Gerraty.i.j: ${.PREFIX}.second
20*956e45f6SSimon J. Gerraty	: 'Making ${.TARGET} from ${.IMPSRC} all ${.ALLSRC}.'
21*956e45f6SSimon J. Gerraty
22*956e45f6SSimon J. Gerratyissue11.h issue11.first issue11.second:
23*956e45f6SSimon J. Gerraty	: 'Making ${.TARGET} out of nothing.'
24*956e45f6SSimon J. Gerraty
25*956e45f6SSimon J. Gerraty#.MAKEFLAGS: -dg1
26