diff options
Diffstat (limited to 'unit-tests/depsrc-make.mk')
-rw-r--r-- | unit-tests/depsrc-make.mk | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/unit-tests/depsrc-make.mk b/unit-tests/depsrc-make.mk index 9631f3e913d0..f7b5a9cca8ff 100644 --- a/unit-tests/depsrc-make.mk +++ b/unit-tests/depsrc-make.mk @@ -1,8 +1,16 @@ -# $NetBSD: depsrc-make.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $ +# $NetBSD: depsrc-make.mk,v 1.3 2020/09/05 15:57:12 rillig Exp $ # -# Tests for the special source .MAKE in dependency declarations. +# Tests for the special source .MAKE 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: .MAKE + @echo ${.TARGET} is made. + +this-is-not-made: + @echo ${.TARGET} is just echoed. |