[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Optimizing Makefiles
From: |
Derek R. Price |
Subject: |
Re: Optimizing Makefiles |
Date: |
Wed, 21 Feb 2001 14:35:16 -0500 |
Akim Demaille wrote:
> What is the general policy wrt `optimizations' in automake vs leaving
> some job to make? For instance there are many places with code like:
>
> if ($relative_dir eq '.')
> {
> push (@files, 'acconfig.h');
> }
> else
> {
> push (@files, '$(top_srcdir)/acconfig.h');
> }
>
> While it certainly more elegant from the Makefile point of view, it
> results in many little places in automake where the core code is
> ``polluted''. Don't we want to continue like this?
Aside from optimization, there's another diffrence in the above. The
first will be looked for in VPATH and the second won't be when
$(top_srcdir) is absolute. Not sure this matters.
Derek
--
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden OpenAvenue ( http://OpenAvenue.com )
--
Always glad to share my ignorance - I've got plenty.