How to package your software in Linux using GNU Autotools

A better way to deliver your code.

What is AutoTools?

Autotools is a quick and easy way to manage and package source code so users can compile and install software. It also makes a source code package portable to a range of systems, including UNIX and others. Autotools is also known as the GNU Build System.

  • Makefile.am.

Autotools configuration

A basic overview of how the main autotools components fit together.[1]
clean-local:
@rm config.status configure config.log
@rm -r autom4te.cache/
@rm aclocal.m4
A basic overview of how the main autotools components fit together.[1]

Testing the program

Let's move our tar.gz to another folder and test it.

./configure && make && sudo make install

References

[1] https://devmanual.gentoo.org/general-concepts/autotools/index.html