I've been thinking about the use of android.mk in nested subdirectories in android.mk, and I found it today, and sent it to someone who was just as confused as I am.
Include $ (call All-subdir-makefiles)
returns a list of subdirectories located at the current ' My-dir ' path. For example, look at the following directory hierarchy:
Sources/foo/android.mk
Sources/foo/lib1/android.mk
Sources/foo/lib2/android.mk
if sources/foo/android.mk contains one line :
Include $ (call All-subdir-makefiles)
then it will automatically contain sources/foo/lib1/android.mk and sources/foo/lib2/android.mk.
This feature is used to provide a deep nested code directory hierarchy to the compilation system. Note that by default, the NDK will only search for files in Sources/*/android.mk .
This-makefile
returns the current The path to the Makefile (where this function is called)
Parent-makefile
returns the parent in the call Tree Makefile path. the Makefile path that contains the current Makefile .
Grand-parent-makefile
Android.mk in dependent subdirectories android.mk include $ (call All-subdir-makefiles)