dep-double-colon.mk revision 1.5
11.5Srillig# $NetBSD: dep-double-colon.mk,v 1.5 2020/11/15 20:20:58 rillig Exp $
21.1Srillig#
31.5Srillig# Tests for the '::' operator in dependency declarations, which allows
41.5Srillig# several dependency groups for a single node, each having its own attributes
51.5Srillig# and dependencies.  In the code, the additional dependency groups are called
61.5Srillig# cohorts.
71.1Srillig
81.3Srilligall::
91.3Srillig	@echo 'command 1a'
101.3Srillig	@echo 'command 1b'
111.1Srillig
121.3Srilligall::
131.3Srillig	@echo 'command 2a'
141.3Srillig	@echo 'command 2b'
151.4Srillig
161.4Srillig# When there are multiple command groups for a '::' target, each of these
171.4Srillig# groups is added separately to the .ALLTARGETS variable.
181.4Srillig#
191.4Srillig# XXX: What is this good for?
201.4Srillig# XXX: Where does the leading space come from?
211.4Srillig.if ${.ALLTARGETS} != " all all"
221.4Srillig.  error
231.4Srillig.endif
24