xref: /freebsd/contrib/bmake/unit-tests/dep-double-colon.mk (revision 36d6566e5985030fd2f1100bd9c1387bbe0bd290)
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
5all::
6	@echo 'command 1a'
7	@echo 'command 1b'
8
9all::
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
21