Fix "Nothing to be done" messages when launching soong_ui
When specifying multiple arguments to make, we were getting messages
about nothing to be done:
m -j USE_SOONG_UI=true checkbuild tests cts blueprint_tools
...
make: Nothing to be done for `tests'.
make: Nothing to be done for `cts'.
make: Nothing to be done for `blueprint_tools'.
Test: m -j USE_SOONG_UI=true blueprint_tools libc adb
Change-Id: Id448bf0e09736fcd92ba058aec7ce556f6f778a3
diff --git a/core/main.mk b/core/main.mk
index 6ec6e66..cca0d21 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -24,7 +24,8 @@
+@prebuilts/build-tools/$(host_prebuilts)/bin/makeparallel --ninja build/soong/soong_ui.bash --make-mode $(MAKECMDGOALS)
.PHONY: $(MAKECMDGOALS)
-$(MAKECMDGOALS) : run_soong_ui
+$(sort $(MAKECMDGOALS)) : run_soong_ui
+ @#empty
else # USE_SOONG_UI