1 # $NetBSD: depsrc-usebefore-double-colon.mk,v 1.1 2020/08/22 08:29:13 rillig Exp $
3 # Tests for the special source .USEBEFORE in dependency declarations,
4 # combined with the double-colon dependency operator.
8 # The dependency operator :: allows commands to be added later to the same
10 double-colon:: .USEBEFORE
11 @echo double-colon early 1
13 # This command is ignored, which kind of makes sense since this dependency
14 # declaration has no .USEBEFORE source.
16 @echo double-colon early 2
18 # XXX: This command is ignored even though it has a .USEBEFORE source.
20 double-colon:: .USEBEFORE
21 @echo double-colon early 3
23 # At this point, the commands from the .USEBEFORE targets are copied to
24 # the "action" target.
27 # This command is not added to the "action" target since it comes too late.
28 # The commands had been copied in the previous line already.
30 @echo double-colon late