The Gawk package contains programs for manipulating text files.
First, ensure some unneeded files are not installed:
sed -i 's/extras//' Makefile.in
Prepare Gawk for compilation:
./configure --prefix=/usr
Compile the package:
make
To test the results, issue:
make check
Install the package:
make LN='ln -f' install
The meaning of the overridden make variable:
LN='ln -f'
This variable ensures that the previous hard link installed in Section 6.9, “Gawk-5.2.1” is updated here.
If desired, install the documentation:
mkdir -pv /usr/share/doc/gawk-5.2.1 cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-5.2.1