The most convenient solution is the include $(call all-subdir-makefiles) command include $(call all-subdir-makefiles) also inside the /package/groupA/Android.mk file.
However, if you want only third-level mk files, you can use the following command:
include $(wildcard $(call my-dir)/*/*/Android.mk)
And here is a completely recursive solution, but it relies on the find from the shell:
include $(filter-out $(call my-dir)/Android.mk,$(shell find $(call my-dir)/ -type f -name Android.mk))
Andrey Kamaev
source share