Re: how to avoid unnecessary recompile when using configure script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 12 Aug 2004, Andrew Wu wrote:


I'm looking for help to make my build/make process smarter to

avoid unnecessary recompilation.

The solution to this using Automake is to create just one large Makefile.am file at the top of the source tree that knows how to build *everything* without using any subordinate Makefile.am or configure scripts. Since make then sees *all* of the source files and *all* of the existing targets, it can then decide that it has nothing to do, or does only what is actually required.


The ability to reference source files and targets has been in Automake for a while.

In order to maintain your sanity, I recommend putting the build libraries and executables in simple high-level directories (e.g. 'lib' and 'bin'). For example, if you put executables in 'bin', then you would refer to that executable like bin_exename (notice use of underscore) in Automake.

Bob
======================================
Bob Friesenhahn
bfriesen@xxxxxxxxxxxxxxxxxxx
http://www.simplesystems.org/users/bfriesen


_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux