@@ -39,13 +39,53 @@ version of Vim that is small and starts up quickly, see the Makefile for how
3939to disable the GUI and X11. If you don't have GUI libraries and/or X11, these
4040features will be disabled automatically.
4141
42+ To built Vim on Ubuntu from scratch on a clean system using git:
43+ Install tools required to be able to get and build Vim:
44+ % sudo apt install git
45+ % sudo apt install make
46+ % sudo apt install clang
47+
48+ Build Vim with default features:
49+ % git clone https://github.com/vim/vim.git
50+ % cd vim/src
51+ % make
52+
53+ Run tests to check there are no problems:
54+ % make test
55+
56+ Install Vim in /usr/local:
57+ % sudo make install
58+
59+ Add X windows clipboard support (also needed for GUI):
60+ % sudo apt install libxt-dev
61+ % make reconfig
62+
63+ Add GUI support (ignore compiler warnings):
64+ % sudo apt install libgtk2.0-dev
65+ % make reconfig
66+
67+ Add Python 3 support:
68+ % sudo apt install libpython3-dev
69+ Uncomment this line in Makefile:
70+ "CONF_OPT_PYTHON3 = --enable-python3interp"
71+ % make reconfig
72+
73+ Debugging:
74+ % sudo apt install valgrind
75+ Uncomment this line in Makefile:
76+ CFLAGS = -g -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -Wno-deprecated-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
77+ % make reconfig
78+ % make test_{test-name}
79+ See output in testdir/valgrind.test_{test-name}
80+
81+
4282See the start of Makefile for more detailed instructions about how to compile
4383Vim.
4484
4585If you need extra compiler and/or linker arguments, set $CFLAGS and/or $LIBS
4686before starting configure. Example:
4787
48- env CFLAGS=-I/usr/local/include LIBS=-lm make
88+ env CFLAGS=-I/usr/local/include LIBS=-lm make
4989
5090This is only needed for things that configure doesn't offer a specific argument
5191for or figures out by itself. First try running configure without extra
0 commit comments