Every time you want to build a software from source, you need to enter a lot of commands in the terminal. Is there a way to compile software using a graphical user interface?
You can do a shell script where you write all your commands and then you execute the script each time you want to use them :
The script (in a file called "myscript.sh") :
And then in the terminal :
Have also a look at software automation tools like GNU make (with its famous "makefiles").
There are plenty of tutorials and examples on the Web which shows you how to write a shell script ("BASH scripts") or makefiles.
NB : it is not specific to Ubuntu or Linux.