Compiling Blender 2.8 Beta
I'm on windows but AFAIK it's the same method, the code for downloading 2.8's repo is:

git clone git://git.blender.org/blender.git -b blender2.8


If your make doesn't work, try maybe make 2017 full (or make 2017 release for CUDA handling).