Suppose, we've built some package from sources (
configure make install).
May we remove sources directory after successful building? Or it depends? On what, then?
You don't need anything except the binaries. Those should already be copied to another location by make install. The rest can be removed. If you're unsure make a backup before removal. Remove, test if still working, if still working remove the backup.
As ændrük pointed out: Using checkinstall over
If you installed files using
A better alternative is to use
Generally once you got your binaries installed you can remove the directory containing source code, unless you want to compile them again, possibly with other compilation options.
Sometimes you could find particularly useful to keep the source directory, for example when upgrading Apache.
You can decide what's your best, in my opinion keep the source directory is a good thing. Obviously if you don't have disk space issues.