diff mbox series

[ulogd2,02/13] gitignore: ignore util/.dirstamp

Message ID 20211030160141.1132819-3-jeremy@azazel.net
State Changes Requested
Delegated to: Pablo Neira
Headers show
Series Build Improvements | expand

Commit Message

Jeremy Sowden Oct. 30, 2021, 4:01 p.m. UTC
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

Comments

Jan Engelhardt Oct. 30, 2021, 5:05 p.m. UTC | #1
On Saturday 2021-10-30 18:01, Jeremy Sowden wrote:
>Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
>---
> .gitignore | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/.gitignore b/.gitignore
>index 3f218218dfc9..fd2189de5748 100644
>--- a/.gitignore
>+++ b/.gitignore
>@@ -27,3 +27,4 @@ TAGS
> /doc/ulogd.*
> !/doc/ulogd.sgml
> ulogd.conf.5
>+/util/.dirstamp

.dirstamp should be globally ignored, without a path anchor.
(Best shotgun hypothesis I have that this file is created whenever
a Makefile.am contains a '/' in some _SOURCES)
Jeremy Sowden Nov. 6, 2021, 11:06 a.m. UTC | #2
On 2021-10-30, at 19:05:34 +0200, Jan Engelhardt wrote:
> On Saturday 2021-10-30 18:01, Jeremy Sowden wrote:
> > Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
> > ---
> >  .gitignore | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/.gitignore b/.gitignore
> > index 3f218218dfc9..fd2189de5748 100644
> > --- a/.gitignore
> > +++ b/.gitignore
> > @@ -27,3 +27,4 @@ TAGS
> >  /doc/ulogd.*
> >  !/doc/ulogd.sgml
> >  ulogd.conf.5
> > +/util/.dirstamp
>
> .dirstamp should be globally ignored, without a path anchor.

Will update in v2.

> (Best shotgun hypothesis I have that this file is created whenever
> a Makefile.am contains a '/' in some _SOURCES)

Yes, if the `subdir-objects` automake option is defined and there is a
source outside the current source directory (../../utils/db.c,
../util/printpkt.c and ../util/printflow.c, in this case), automake adds
a rule to create .dirstamp in order to make sure that the corresponding
build directory gets created.

J.
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index 3f218218dfc9..fd2189de5748 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,3 +27,4 @@  TAGS
 /doc/ulogd.*
 !/doc/ulogd.sgml
 ulogd.conf.5
+/util/.dirstamp