Make recompiles everything on Ubuntu 20.04

If I just make a single change in ofApp.cpp and do a make in terminal the whole project and all addons will compile again. It takes up to 20 min no matter how large the change was.

This isnt normal. Normally it would just recompile the file that was changed. But for some reason it doesnt. Have tried on two different computers with the same setup. Latest oF and Ubuntu 20.04.

Anyone with similar problems? How could I solve this?