make: print error if make was executed in the root

Fixes #1104, alternative to #1178.
Merge pull request #1183 from Kijewski/issue-1104

make: print error if make was executed in the root