From 9ce8534b327b5c28ffb8d406ecd25b8bc84299aa Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 7 Mar 2023 10:33:29 -0300 Subject: [PATCH] Adding info on make emacs --- doc/compile.org | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/doc/compile.org b/doc/compile.org index 9c4941d..8d06119 100644 --- a/doc/compile.org +++ b/doc/compile.org @@ -3,7 +3,15 @@ * Compiling emacs in GNU linux systems -Install ~build-essential~ + +Emacs is available in all GNU-linux distributions. If you want to install emacs +directly from any free-software distribution, you may check [[https://www.gnu.org/software/emacs/download.html][this information]]. +However, you may be interested in compiling emacs for your operational system. + +To compile emacs it's important to install some development libraries before +downloading the emacs tarball. + +** Install ~build-essential~ #+begin_example sh sudo apt install build-essential @@ -13,7 +21,27 @@ Install ~build-essential~ sudo apt update && sudo apt build-dep emacs #+end_example -Download emacs (tarball) and open the directory +** Download emacs (tarball), extract and open the source directory + +Let's say you want to download emacs 28.2. You may use ~wget~ to download the tarball: + +#+begin_example sh + wget http://ftp.gnu.org/gnu/emacs/emacs-28.2.tar.gz +#+end_example + +Then, extract the files and open a terminal within the main directory of the package. + +#+begin_example sh + tar xvfz emacs-28.2.tar.gz +#+end_example + +Change the directory to the extracted files: + +#+begin_example sh + cd emacs-28.2 +#+end_example + +** Execute the following commands in a terminal to begin with the process #+begin_example sh ./autogen.sh @@ -26,3 +54,8 @@ Download emacs (tarball) and open the directory #+begin_example sh sudo make install #+end_example + + +** References + + * [[https://www.emacswiki.org/emacs/BuildingEmacs][Emacs wiki]]