michael@0: #T commandline: ['-j2'] michael@0: michael@0: # CAUTION: this makefile is also used by serial-toparallel.mk michael@0: michael@0: define SLOWMAKE michael@0: printf "$@:0:" >>results michael@0: sleep 0.5 michael@0: printf "$@:1:" >>results michael@0: sleep 0.5 michael@0: printf "$@:2:" >>results michael@0: endef michael@0: michael@0: EXPECTED = target1:0:target2:0:target1:1:target2:1:target1:2:target2:2: michael@0: michael@0: all:: target1 target2 michael@0: cat results michael@0: test "$$(cat results)" = "$(EXPECTED)" michael@0: @echo TEST-PASS michael@0: michael@0: target1: michael@0: $(SLOWMAKE) michael@0: michael@0: target2: michael@0: sleep 0.1 michael@0: $(SLOWMAKE) michael@0: michael@0: .PHONY: all