/hello-world-autotools

Example of autotools

Primary LanguageMakefile

Hello World AutoTools

Based on https://thoughtbot.com/blog/the-magic-behind-configure-make-make-install

Created configure.ac and Makefile.am

Next generated the configure and Makefile.in script using the commands:

aclocal # Set up an m4 environment
autoconf # Generate configure from configure.ac
automake --add-missing # Generate Makefile.in from Makefile.am
./configure # Generate Makefile from Makefile.in
make distcheck # Use Makefile to build and test a tarball to distribute

This generates load of files but the two end results we need for user are configure and Makefile.in.

How to use on the end user's system?

./configure # Generate Makefile from Makefile.in
make # Use Makefile to build the program
make install # Use Makefile to install the program