diff options
Diffstat (limited to 'unit-tests/depsrc-optional.mk')
-rw-r--r-- | unit-tests/depsrc-optional.mk | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/unit-tests/depsrc-optional.mk b/unit-tests/depsrc-optional.mk index 074dd0b4ef8f..75ae38bf3194 100644 --- a/unit-tests/depsrc-optional.mk +++ b/unit-tests/depsrc-optional.mk @@ -1,8 +1,18 @@ -# $NetBSD: depsrc-optional.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $ +# $NetBSD: depsrc-optional.mk,v 1.3 2020/09/05 15:57:12 rillig Exp $ # -# Tests for the special source .OPTIONAL in dependency declarations. +# Tests for the special source .OPTIONAL in dependency declarations, +# which ignores the target if make cannot find out how to create it. +# +# TODO: Describe practical use cases for this feature. + +# TODO: Explain why the commands for "important" are not executed. +# I had thought that only the "optional" commands were skipped. + +all: important + : ${.TARGET} is made. -# TODO: Implementation +important: optional + : ${.TARGET} is made. -all: - @:; +optional: .OPTIONAL + : This is not executed. |