Proper way to run ndk-build and adb

In the cases when I changed only a C++ implementation file, it would be much faster to deploy the game on the device if I call just ndk-build and adb from a script of my own, instead of running the whole of unrealbuildtool. What’s the proper way to do that? Should I pay attention to any detail specific to unreal?

Thanks in advance!