diff options
Diffstat (limited to 'contrib/bmake/unit-tests/deptgt-default.mk')
-rw-r--r-- | contrib/bmake/unit-tests/deptgt-default.mk | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/contrib/bmake/unit-tests/deptgt-default.mk b/contrib/bmake/unit-tests/deptgt-default.mk index 814eaf72aed3..bf5f16536561 100644 --- a/contrib/bmake/unit-tests/deptgt-default.mk +++ b/contrib/bmake/unit-tests/deptgt-default.mk @@ -1,8 +1,17 @@ -# $NetBSD: deptgt-default.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $ +# $NetBSD: deptgt-default.mk,v 1.3 2021/12/01 23:56:29 rillig Exp $ # -# Tests for the special target .DEFAULT in dependency declarations. +# Tests for the special target .DEFAULT in dependency declarations, which +# attaches its associated commands to all targets that don't specify any way +# to create them. -# TODO: Implementation +all: test-default not-a-target + +test-default: .PHONY + +has-commands: .PHONY + @echo 'Making ${.TARGET} from ${.IMPSRC}.' + +.DEFAULT: dependency-is-ignored + @echo "Default command is making '${.TARGET}' from '${.IMPSRC}'." all: - @:; |