4.3. Maintaining Input Files

If you edit any of the GNU Autotools input files in your package, you must regenerate the machine-generated files for these changes to take effect. If you add a new source file to the foonly_SOURCES variable in 'Makefile.am', for instance, you must regenerate the derived file 'Makefile.in'. If you are building your package, you need to rerun configure to regenerate the site-specific 'Makefile', and then rerun make to compile the new source file and link it into 'foonly'.

It is possible to regenerate these files by running the required tools, one at a time. As you can see from the preceding discussion, it can be difficult to compute the dependencies—does a particular change require aclocal to be run? Does a particular ...

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.