Building GNU Emacs
I use the following commands to build GNU Emacs from source.
git clone https://https.git.savannah.gnu.org/git/emacs.git cd emacs ./autogen.sh ./configure --prefix=$HOME/opt/emacs --with-pgtk make -j8 make install
For more details, see INSTALL.REPO.