Add progress indicator to Android.mk includes
Test: m -j
Change-Id: I1e6fd020a06b49c243be14953d9f417e64ac7b8b
diff --git a/core/definitions.mk b/core/definitions.mk
index 137bddf..a7f720d 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -3241,6 +3241,11 @@
#$(warning 42 == $(call math_max,5,42))
#$(warning 42 == $(call math_max,42,5))
+# $1 is the variable name to increment
+define inc_and_print
+$(strip $(eval $(1) := $($(1)) .)$(words $($(1))))
+endef
+
###########################################################
## Other includes
###########################################################