I am trying to build my own libs and apps in external directory of the AOSP, but the problem is i have to run make each time and the make will compile/build whole the android.
You can get list of all of the modules in your Android code with the following command:
make modules
To build any single module:
make [modulename]