xref: /freebsd/contrib/bmake/unit-tests/dep-double-colon.mk (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1# $NetBSD: dep-double-colon.mk,v 1.5 2020/11/15 20:20:58 rillig Exp $
2#
3# Tests for the '::' operator in dependency declarations, which allows
4# several dependency groups for a single node, each having its own attributes
5# and dependencies.  In the code, the additional dependency groups are called
6# cohorts.
7
8all::
9	@echo 'command 1a'
10	@echo 'command 1b'
11
12all::
13	@echo 'command 2a'
14	@echo 'command 2b'
15
16# When there are multiple command groups for a '::' target, each of these
17# groups is added separately to the .ALLTARGETS variable.
18#
19# XXX: What is this good for?
20# XXX: Where does the leading space come from?
21.if ${.ALLTARGETS} != " all all"
22.  error
23.endif
24