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