I stumbled across this program, I thought someone might have use for it. I haven't tried it, so I don't know how well it works, but the idea is interesting.
From the webpage:
A lot of people has asked me how can they remove from their boxes a program they compiled and installed from source. Some times -very few- the program's author adds an uninstall rule to their Makefile, but that's not usually the case. This is my primary reason to write CheckInstall. After you ./configure; make your program, CheckInstall will run make install (or whatever you tell it to run) and keep track of every file modified by this installation, using the excelent installwatch utility written by Pancrazio 'Ezio' de Mauro .
When make install is done, CheckInstall will create a Slackware or RPM compatible package (support for Debian's .deb will be available soon) and install it with Slackware's installpkg or "rpm -i" as appropiate, so you can view it's contents with pkgtool ("rpm -ql" for RPM users) or remove it with removepkg ("rpm -e"). Aditionally, this script will leave a copy of the installed package in the source directory so you can install it wherever you want, which is my second motivation: I don't have to compile the same software again and again every time I need to install it on another box :-).