26 lines
725 B
Makefile
26 lines
725 B
Makefile
|
# $NetBSD: suff-transform-expand.mk,v 1.1 2020/10/20 20:36:53 rillig Exp $
|
||
|
#
|
||
|
# https://gnats.netbsd.org/49086, issue 11:
|
||
|
# Sources from transformation rules are expanded incorrectly.
|
||
|
#
|
||
|
# issue11.j should depend on issue11.i and issue11.second.
|
||
|
# issue11.i should depend on issue11.h and issue11.first.
|
||
|
#
|
||
|
# XXX: The dynamic sources are expanded before ${.PREFIX} and
|
||
|
# ${.TARGET} were available, so they expand to an empty string.
|
||
|
|
||
|
all: issue11.j
|
||
|
|
||
|
.SUFFIXES: .h .i .j
|
||
|
|
||
|
.h.i: ${.PREFIX}.first
|
||
|
: 'Making ${.TARGET} from ${.IMPSRC} all ${.ALLSRC}.'
|
||
|
|
||
|
.i.j: ${.PREFIX}.second
|
||
|
: 'Making ${.TARGET} from ${.IMPSRC} all ${.ALLSRC}.'
|
||
|
|
||
|
issue11.h issue11.first issue11.second:
|
||
|
: 'Making ${.TARGET} out of nothing.'
|
||
|
|
||
|
#.MAKEFLAGS: -dg1
|