Granulate main makefile.

Add ability to run application, tests and build separatly.