Hi Pooja,
I am glad you did reply me back. Sorry for such problem. Plz let me know, will you need CUDA for your caffe training? If not, the kindly comment each of the path and other commands related to CUDA in Makefile.config. And dont worry about this permission deny issue. just use "cmake .." in build directory. I think its been messed up so, its better if you remove and make clean your build folder again after changing your makefile. Let me knw if other issue arises, ready to help if possible :)
Regards,
Shruti