1 # $NetBSD: deptgt-suffixes.mk,v 1.4 2020/11/21 21:54:42 rillig Exp $ 2 # 3 # Tests for the special target .SUFFIXES in dependency declarations. 4 # 5 # See also: 6 # varname-dot-includes.mk 7 # varname-dot-libs.mk 8 9 .MAKEFLAGS: -dg1 10 11 .MAIN: all 12 13 .SUFFIXES: .custom-null 14 15 # TODO: What is the effect of this? How is it useful? 16 .NULL: .custom-null 17 .PATH.custom-null: . .. 18 19 # The order in which the suffixes are listed doesn't matter. 20 # Here, they are listed from source to target, just like in the transformation 21 # rule below it. 22 .SUFFIXES: .src-left .tgt-right 23 deptgt-suffixes.src-left: 24 : Making ${.TARGET} out of nothing. 25 .src-left.tgt-right: 26 : Making ${.TARGET} from ${.IMPSRC}. 27 all: deptgt-suffixes.tgt-right 28 29 # Here, the target is listed earlier than the source. 30 .SUFFIXES: .tgt-left .src-right 31 deptgt-suffixes.src-right: 32 : Making ${.TARGET} out of nothing. 33 .src-right.tgt-left: 34 : Making ${.TARGET} from ${.IMPSRC}. 35 all: deptgt-suffixes.tgt-left 36