Update makefile for build target to avoid sub-modules recompilation