]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/dep-double-colon.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / dep-double-colon.mk
1 # $NetBSD: dep-double-colon.mk,v 1.4 2020/09/26 15:41:53 rillig Exp $
2 #
3 # Tests for the :: operator in dependency declarations.
4
5 all::
6         @echo 'command 1a'
7         @echo 'command 1b'
8
9 all::
10         @echo 'command 2a'
11         @echo 'command 2b'
12
13 # When there are multiple command groups for a '::' target, each of these
14 # groups is added separately to the .ALLTARGETS variable.
15 #
16 # XXX: What is this good for?
17 # XXX: Where does the leading space come from?
18 .if ${.ALLTARGETS} != " all all"
19 .  error
20 .endif