freebsd-dev/contrib/bmake/unit-tests/suff-transform-expand.mk
Simon J. Gerraty 956e45f6fb Update to bmake-20201101
Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py
2020-11-07 21:46:27 +00:00

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