Add make install phase in core build script

At the same time, workspace cleanup is done with distclean instead
of clean to also remove files generated at configure phase.