Cache subdir makefiles (1/2)

Change-Id: I7c429a1a825e17491e9768dffbe2afd6beac254a