as above "make uninstall" done as the root user NORMALLY????? will uninstall things built
most of the time it is not needed to build from source , a lot of extra effort needs to go into doing that
-- it however can BE FUN !!! yes in the fun activity thing - it is SOLVING A PUZZLE sometimes
I am doing that right NOW with some Astronomy software for imaging from NASA spacecraft -- a linking error - the WORST type of error
so for fun or sometimes that is the ONLY way
but for most things there really is no need .
Your OS's package manager should have 99.99999 of everything that 99.9% of people will need
years ago in 2001 i started using MinGW and CygWin ( used MinGW mostly ) to build linux software on XP
I found that i used gcc in Mingw MORE THAN the Visual Studio 6 and 7 that i paid cash for
4 years of that was a very good education to using Linux 99.9999999% of the time
now most programs use " Autotools"
a 18.7 MiB pdf
but some use "CMake"
some use "Qmake"
and some use "SCons"
and some use a 100% manually wrote "Makefile"
so the upshot is basically
READ THE CODE
for autotools there is normally a "configure" script ( not ALWAYS!!! sometimes you have to build the configure script)
read the output of it
the HELP options that are built in will tell you a lot
and open the Makefile in a text editor and read the options in the file
there can be MANY
or if it is a complex program make only part of it
Gmic is a complex one , you can make all of it or only 1 ,2 or all 3 parts of it
almost all programs will have a README and a INSTALL text file
and / or a folder called "doc" docs" "instructions" something like that
so it is normally a VERY good idea to READ and do somre readding
the files , the WEBSITE for the program
a VERY VERY VERY GREAT !!! program to learn with is "The Gimp "
there books upon more books on building this program
and web sites
this one program is very well documented
and so are all the PREREQUISITE that go into building it