michael@0: #T commandline: ['-j2'] michael@0: michael@0: # ensure that calling python commands doesn't block other targets michael@0: ifndef SLEEP michael@0: SLEEP := sleep michael@0: endif michael@0: michael@0: PRINTF = printf "$@:0:" >>results michael@0: EXPECTED = target2:0:target1:0: 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: $(SLEEP) 0.1 michael@0: $(PRINTF) michael@0: michael@0: target2: michael@0: $(PRINTF)