would not it be easier and cleaner to use the Android's REPO tool [1] to pin down the versions and layout your workspace?
At least the REPO allows you to write down the dependency information in a declarative manner instead of Makefile scripting snippets.
[1] https://source.android.com/source/using-repo.html