commit | a55544875a65b33468ef662b3a3b8bbd2ab2b5d8 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Sat Sep 05 21:16:19 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Mon Sep 14 14:33:50 2015 -0700 |
tree | be7b7e16e41317148a24cd11c16578fa0c10f7ee | |
parent | da196abf10fd9a500fe223952d96cf93ed699983 [diff] [blame] |
Implement makeparallel makeparallel communicates with the GNU make jobserver (http://make.mad-scientist.net/papers/jobserver-implementation/) in order claim all available jobs, and then passes the number of jobs claimed to a subprocess with -j<jobs>. Change-Id: Id41a2d81e0d835517da8ba52c818c763fc455c14
diff --git a/tools/makeparallel/Makefile.test b/tools/makeparallel/Makefile.test new file mode 100644 index 0000000..bd682f7 --- /dev/null +++ b/tools/makeparallel/Makefile.test
@@ -0,0 +1,5 @@ +MAKEPARALLEL ?= ./makeparallel + +.PHONY: test +test: + +if [ "$$($(MAKEPARALLEL) echo)" = "-j1234" ]; then echo SUCCESS; else echo FAILED; fi