1 1.1 rillig # $NetBSD: dep-double-colon-indep.mk,v 1.1 2020/10/23 19:11:30 rillig Exp $ 2 1.1 rillig # 3 1.1 rillig # Tests for the :: operator in dependency declarations, which allows multiple 4 1.1 rillig # dependency groups with the same target. Each group is evaluated on its own, 5 1.1 rillig # independent of the other groups. 6 1.1 rillig # 7 1.1 rillig # This is useful for targets that are updatable, such as a database or a log 8 1.1 rillig # file. Be careful with parallel mode though, to avoid lost updates and 9 1.1 rillig # other inconsistencies. 10 1.1 rillig # 11 1.1 rillig # The target 1300 depends on 1200, 1400 and 1500. The target 1200 is older 12 1.1 rillig # than 1300, therefore nothing is done for it. The other targets are newer 13 1.1 rillig # than 1300, therefore each of them is made, independently from the other. 14 1.1 rillig 15 1.1 rillig .END: 16 1.1 rillig @rm -f dep-double-colon-1??? 17 1.1 rillig 18 1.1 rillig _!= touch -t 202001011200 dep-double-colon-1200 19 1.1 rillig _!= touch -t 202001011300 dep-double-colon-1300 20 1.1 rillig _!= touch -t 202001011400 dep-double-colon-1400 21 1.1 rillig _!= touch -t 202001011500 dep-double-colon-1500 22 1.1 rillig 23 1.1 rillig all: dep-double-colon-1300 24 1.1 rillig 25 1.1 rillig dep-double-colon-1300:: dep-double-colon-1200 26 1.1 rillig : 'Making 1200 ${.TARGET} from ${.ALLSRC} oodate ${.OODATE}' 27 1.1 rillig 28 1.1 rillig dep-double-colon-1300:: dep-double-colon-1400 29 1.1 rillig : 'Making 1400 ${.TARGET} from ${.ALLSRC} oodate ${.OODATE}' 30 1.1 rillig 31 1.1 rillig dep-double-colon-1300:: dep-double-colon-1500 32 1.1 rillig : 'Making 1500 ${.TARGET} from ${.ALLSRC} oodate ${.OODATE}' 33