Hi Simon,
> The git-version-gen thread reminded me that having include'able snippets
> of these statements is increasingly useful... I get tired of manually
> syncing the Makefile.am snippets from gnulib manual on every update in
> gnulib.
If you feel so... Unlike the gen-Changelog rule, which needs adaptations
for each package, the .version / .tarball-version rules appear to be the
same across packages.
> Maybe simple to add a 'Files: etc/make/git-version-gen.mk' to
> modules/git-version-gen?
>
> Although I suspect gnulib-tool will have to be teached about a
> --etc-base then.
Not 'etc/' please. One should think three times before naming a directory
'etc', because it opens the door to a lot of nonsense.
> So how about something like this? It re-use the existing --aux-dir for
> these files instead.
The file should better be added to module 'gnumakefile', not 'git-version-gen',
because
- Module 'git-version-gen' is for the tool. Be clear what each module
is about.
- top/GNUmakefile already contains some rule relating to .tarball-version,
so this file and your new snippet are semantically related.
Regarding the contents of this file, I would suggest to add a comment to
refer to build-aux/git-version-gen in order to understand the roles of
'.version' and '.tarball-version'.
Bruno