Many software applications for linux are available in the form of source code which needs to be compiled. The general process to compile such software is by running the configure, make and make install commands.
After the install process the files get installed in the system directories and the software can be run from the shortcuts or terminal command.
However there might be no option to uninstall the application. If it were installed from a deb file as a package then the package manager would keep track of the files and can un install them later.
Therefore it is a good idea to create a .deb package from the source first and then install from the deb file. The installed package would be visible in synaptic package manager too and can be uninstalled from there easily.
There is a small utility called checkinstall that can very easily create deb files from compiled source and create deb packages.
Install: To install checkinstall on ubuntu run the following at the terminal
sudo apt-get install checkinstall
Creating deb from source
Now lets say you have an application that is in the form of source and needs to be compiled.
Then typical steps to compile an application source code is as follows:
Step 1: Extract the source of the application in a folder.
Step 2: Run configure as:
./configure
Step 3: Run make as
make
Step 4: Run checkinstall instead of make install.
sudo checkinstall
Note that in the 4th step we did not do a make install. Instead we run checkinstall. checkinstall will ask for some information most of which you can skip except the version of the package being created.
Once finished a .deb file would be created which can be used to install the package by simple double clicking.
Conclusion
To learn more about checkinstall check out this ubuntu wiki page. Checkinstall is no longer actively maintained or developed. Its better to switch to alternatives.
The homepage is here: http://checkinstall.izto.org/