michael@0: #T commandline: ['-j2'] michael@0: michael@0: # A submake shouldn't return control to the parent until it has actually finished doing everything. michael@0: michael@0: all: michael@0: -$(MAKE) -f $(TESTPATH)/parallel-submake.mk subtarget michael@0: cat results michael@0: test "$$(cat results)" = "0123" michael@0: @echo TEST-PASS michael@0: michael@0: subtarget: succeed-slowly fail-quickly michael@0: michael@0: succeed-slowly: michael@0: printf 0 >>results; sleep 1; printf 1 >>results; sleep 1; printf 2 >>results; sleep 1; printf 3 >>results michael@0: michael@0: fail-quickly: michael@0: exit 1