[squid-dev] [PATCH] ignore build-generated files

Amos Jeffries squid3 at treenet.co.nz
Thu Nov 12 03:54:30 UTC 2015

On 12/11/2015 10:41 a.m., Alex Rousskov wrote:
> Hello,
>     The attached patch tells bzr to ignore most build-generated files.
> This is very helpful when reorganizing Squid sources and not using
> out-of-source builds.
> Most of the new entries were produced by appending "bzr status" output
> on an otherwise clean tree after a build. I am surprised nobody
> committed something like that before so perhaps I am missing some
> caveats here?

What you seem to be missing is that if updating a Makefile.am or
configure.ac (eg. with bzr update) to remove the generated file. Then a
following "make clean" or even distclean will not remove the old files
from the build area. This will keep them hidden and possible affecting
the build for people who may not be aware of the change.

It can also hide makefile mistakes between $srcdir and $builddir or the
matching top_* variables if the developer changing the makefile is
working in-tree.

PS. I found Henriks advice years ago never to use in-tree builds to be a
good rule to work by and never looked back. These files are not a
problem when working out-or-tree, all we see in "bzr status" is the top
build directory.


More information about the squid-dev mailing list