On line 285, instead of:
make $jobs || exit 1
try changing that to:
make $jobs kstars || exit 1
and you should bypass those errors, and make things compile much quicker too.
The way it was currently set, it compiled everything including tests and doc etc.
Jasem will hopefully get the documentation issues sorted out, but in any case, this should work and be faster.