Build from source and uninstall (checkinstall)

How to do a make install but with the ability to uninstall

sudo apt install checkinstall

Run the usual build commands on the source code of the project:
./configure
make

Then run:
sudo checkinstall

This will create a DEB and install it automatically, but with the bonus that you can uninstall using something like apt.

More information here:
https://help.ubuntu.com/community/CheckInstall