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