1 # $NetBSD: impsrc.mk,v 1.2 2014/08/30 22:21:07 sjg Exp $
3 # Does ${.IMPSRC} work properly?
4 # It should be set, in order of precedence, to ${.TARGET} of:
5 # 1) the implied source of a transformation rule,
6 # 2) the first prerequisite from the dependency line of an explicit rule, or
7 # 3) the first prerequisite of an explicit rule.
10 all: target1.z target2 target3 target4
15 @echo
'expected: target1.x'
19 @echo
'expected: target1.y'
25 @echo
'expected: source4'
28 target2
: source1 source2
29 @echo
'expected: source1'
33 target3
: source2 source3
34 @echo
'expected: source2'
39 @echo
'expected: source1'
42 source1 source2 source3 source4
: