fixed install for static target, fixed BUILD_DOC acknowledgement
Created by: TomzBench
Hello,
Currently, The CMake variable BUILD_DOC is ignored. And the ubootenv_static target is not installed. So the following patch will only build the docs if BUILD_DOC is true and the ubootenv_static target will be installed as expected...