1 1.3 rillig # $NetBSD: depsrc-optional.mk,v 1.3 2020/09/05 15:57:12 rillig Exp $ 2 1.1 rillig # 3 1.3 rillig # Tests for the special source .OPTIONAL in dependency declarations, 4 1.3 rillig # which ignores the target if make cannot find out how to create it. 5 1.3 rillig # 6 1.3 rillig # TODO: Describe practical use cases for this feature. 7 1.3 rillig 8 1.3 rillig # TODO: Explain why the commands for "important" are not executed. 9 1.3 rillig # I had thought that only the "optional" commands were skipped. 10 1.3 rillig 11 1.3 rillig all: important 12 1.3 rillig : ${.TARGET} is made. 13 1.1 rillig 14 1.3 rillig important: optional 15 1.3 rillig : ${.TARGET} is made. 16 1.1 rillig 17 1.3 rillig optional: .OPTIONAL 18 1.3 rillig : This is not executed. 19