dep-double-colon.mk revision 1.4
11.4Srillig# $NetBSD: dep-double-colon.mk,v 1.4 2020/09/26 15:41:53 rillig Exp $
21.1Srillig#
31.2Srillig# Tests for the :: operator in dependency declarations.
41.1Srillig
51.3Srilligall::
61.3Srillig	@echo 'command 1a'
71.3Srillig	@echo 'command 1b'
81.1Srillig
91.3Srilligall::
101.3Srillig	@echo 'command 2a'
111.3Srillig	@echo 'command 2b'
121.4Srillig
131.4Srillig# When there are multiple command groups for a '::' target, each of these
141.4Srillig# groups is added separately to the .ALLTARGETS variable.
151.4Srillig#
161.4Srillig# XXX: What is this good for?
171.4Srillig# XXX: Where does the leading space come from?
181.4Srillig.if ${.ALLTARGETS} != " all all"
191.4Srillig.  error
201.4Srillig.endif
21