Quick µEMACS build and install on Ubuntu

Dependencies

To build µEMACS, you need to have gcc, gmake and ncurses development library installed.

µEMACS source code is available on github either as a git repository or a zip archive.

Checking the environment

gcc and gmake are often preinstalled.
To check their availability:
% which gcc
% which make
% apt list gcc make

If they need to be installed:
% sudo apt install gcc
% sudo apt install make

To check that make is actually GNU make: 
% make --version

ncurses development library usually need to be installed.
To check which packages are available for installation:
% apt search libncurses

To install the missing package:
% sudo apt install libncurses-dev

apt will select the package that matches your architecture (amd64 or i386).

Cloning the git repository

Move to working directory and clone:
% mkdir ~/Projects
% cd ~/Projects
% git clone https://github.com/rfivet/uemacs.git

Building

% cd ~/Projects/uemacs
% make depend
% make

Testing

Start the editor:
% ./ue

To leave the editor type CTL-X CTL-C

Execute a sample script:
% ./ue -x screensize.cmd
screensize script