[Top][All Lists]

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

Re: non-recursive automake advice?

From: Stepan Kasal
Subject: Re: non-recursive automake advice?
Date: Tue, 30 Aug 2005 14:51:31 +0200
User-agent: Mutt/1.4.1i

Hello Bob,

> % time gmake
> gmake  all-am
> gmake[1]: Entering directory 
> `/scratch/bfriesen/build/GraphicsMagick-16-static'
> gmake[1]: Leaving directory `/scratch/bfriesen/build/GraphicsMagick-16-static'
> gmake  0.78s user 0.10s system 88% cpu 0.990 total
> %
> Note that the messages appear to indicate that Automake does recurse 
> once regardless.

that's because you use BUILT_SOURCES.  I think that you should drop it.
You use it only for config headers; but Automake can handle headers
itself, there is no need give him this hint.

To be more specific:
1) When you first run configure, the config headers are generated, and
probably up-to date.
2) After a build, the automatic dapendencies know that all files depend
on config header, so the BUILT_SOURCES hint becomes redundant anyway.
3) If configure has to be regenerated, it is run afterwards, and then
config.status is ran, so the config headers are also regenerated.

Well, the above reasoning is perhaps not very clear, but there are
two big reasons:

12) The Automake manual explains that BUILT_SOURCES is an ugly dirty
hack.  It should be used in minimal necessary doses.  It shouldn't be
used at all, unless absolute necessary.


77) If you remove it, the output will be even nicer.  ;-)

Just use the patch attached below.

Have a nice day,

Attachment: magick-make.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]