Re: [PATCH] Makefile for bootstrap

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 01 Jan 2012 08:19:50 +1300

On 1/01/2012 4:57 a.m., Kinkie wrote:
> 2011/12/30 Henrik Nordström<henrik_at_henriknordstrom.net>:
>> tis 2011-12-27 klockan 13:56 +0100 skrev Kinkie:
>>> I'd like to add the attached file to the top-level squid directory.
>>> It is meant to track dependencies for regenerating the toplevel
>>> configure only when needed.
>> What do this buy compared to the --enable-maintainer-mode configure
>> flag?
> Just tested:
> case 1:
>
> $ ./bootstrap.sh
> $ ./configure --enable-maintainer-mode -C
> (configure)
> $ make
> (build)
> $ touch ./helpers/basic_auth/POP3/Makefile.am
> $ make
> (build)
>
> case 2:
>
> $ make -f Makefile.bootstrap Makefile&& make
> (bootstrap)
> (configure)
> (build)
> $ make -f Makefile.bootstrap Makefile&& make
> (build)
> $ touch ./helpers/basic_auth/POP3/Makefile.am
> $ make -f Makefile.bootstrap Makefile&& make
> (bootstrap)
> (configure)
> (build)
>
>
> In other words, Makefile.bootstrap is useful for those situations
> where coding touches any file used for bootstrapping, unless I
> misunderstood what --enable-maintainer-mode does.
>

Slightly better test would be to touch by adding a comment line. That
alters any kind of file hash that may be used in the background to avoid
useless work when timestamps are unreliable.

Amos
Received on Sat Dec 31 2011 - 19:20:12 MST

This archive was generated by hypermail 2.2.0 : Sun Jan 01 2012 - 12:00:09 MST