diff options
Diffstat (limited to 'unit-tests/depsrc-recursive.mk')
| -rw-r--r-- | unit-tests/depsrc-recursive.mk | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/unit-tests/depsrc-recursive.mk b/unit-tests/depsrc-recursive.mk index 5c629338bc8d..c1f153787037 100644 --- a/unit-tests/depsrc-recursive.mk +++ b/unit-tests/depsrc-recursive.mk @@ -1,8 +1,16 @@ -# $NetBSD: depsrc-recursive.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $ +# $NetBSD: depsrc-recursive.mk,v 1.3 2020/09/05 15:57:12 rillig Exp $ # -# Tests for the special source .RECURSIVE in dependency declarations. +# Tests for the special source .RECURSIVE in dependency declarations, +# which executes the commands of the target even if the -n or -t command +# line options are given. -# TODO: Implementation +.MAKEFLAGS: -n -all: - @:; +all: this-is-made +all: this-is-not-made + +this-is-made: .RECURSIVE + @echo ${.TARGET} is made. + +this-is-not-made: + @echo ${.TARGET} is just echoed. |
