1*e2eeea75SSimon J. Gerraty# $NetBSD: dep-double-colon.mk,v 1.5 2020/11/15 20:20:58 rillig Exp $ 22c3632d1SSimon J. Gerraty# 3*e2eeea75SSimon J. Gerraty# Tests for the '::' operator in dependency declarations, which allows 4*e2eeea75SSimon J. Gerraty# several dependency groups for a single node, each having its own attributes 5*e2eeea75SSimon J. Gerraty# and dependencies. In the code, the additional dependency groups are called 6*e2eeea75SSimon J. Gerraty# cohorts. 72c3632d1SSimon J. Gerraty 82c3632d1SSimon J. Gerratyall:: 92c3632d1SSimon J. Gerraty @echo 'command 1a' 102c3632d1SSimon J. Gerraty @echo 'command 1b' 112c3632d1SSimon J. Gerraty 122c3632d1SSimon J. Gerratyall:: 132c3632d1SSimon J. Gerraty @echo 'command 2a' 142c3632d1SSimon J. Gerraty @echo 'command 2b' 15956e45f6SSimon J. Gerraty 16956e45f6SSimon J. Gerraty# When there are multiple command groups for a '::' target, each of these 17956e45f6SSimon J. Gerraty# groups is added separately to the .ALLTARGETS variable. 18956e45f6SSimon J. Gerraty# 19956e45f6SSimon J. Gerraty# XXX: What is this good for? 20956e45f6SSimon J. Gerraty# XXX: Where does the leading space come from? 21956e45f6SSimon J. Gerraty.if ${.ALLTARGETS} != " all all" 22956e45f6SSimon J. Gerraty. error 23956e45f6SSimon J. Gerraty.endif 24