The error while cleaning is due to the default configuration of the Make commands. You can change Project -> Build options -> Make commands -> Clean project/target and remove the $target part
The no compilation issue may be due to a previous successful compilation, or po having no Makefile, or some missing option when calling ./configure. You should ask to XBoard developers.