Re: Non-recursive Make and prefix-gnulib-mk

2021-12-15 Thread Bruno Haible
Marc Nieper-Wißkirchen wrote: > I'm using build-aux/prefix-gnulib-mk to rewrite the Gnulib Makefile > fragment so that it can be included by a Makefile in a top-level directory. > > What I haven't managed to get working, though, is renaming the Gnulib lib/ > directory at the same time (by setting

Re: Accommodate non-recursive Automake in a less hacky way

2021-12-15 Thread Bruno Haible
Jim Meyering wrote: > Thanks a lot! The core of the processing is still the build-aux/prefix-gnulib-mk that you wrote. I dared to document it and thus declare it "supported", because if people encounter problems with specific modules, we can fix them - either by recognizing more patterns in pre

Re: Accommodate non-recursive Automake in a less hacky way

2021-12-15 Thread Jim Meyering
On Wed, Dec 15, 2021 at 11:38 AM Ben Pfaff wrote: > On Wed, Dec 15, 2021 at 11:31 AM Bruno Haible wrote: > > With the attached patches, 'gnulib-tool' gains the functionality to > > generate a "non-recursive" Automake Makefile.am snippet, similar to > > what the 'non-recursive-gnulib-prefix-hack'

Re: Accommodate non-recursive Automake in a less hacky way

2021-12-15 Thread Ben Pfaff
On Wed, Dec 15, 2021 at 11:31 AM Bruno Haible wrote: > With the attached patches, 'gnulib-tool' gains the functionality to > generate a "non-recursive" Automake Makefile.am snippet, similar to > what the 'non-recursive-gnulib-prefix-hack' module does. Thank you! I favor nonrecursive Makefiles and

Add simple examples

2021-12-15 Thread Bruno Haible
When modifying complicated aspects of the gnulib-tool generated Makefiles, I found it useful to have a couple of examples ready, to avoid regressions. I am adding them here. Paul, if you want, you are welcome to add a 'hello-c-gnumake' example, that shows the --gnu-make option. I guess you are rel

Re: gnulib-tool: Support non-recursive-gnulib-prefix-hack with tests

2021-12-15 Thread Bruno Haible
I wrote: > In a project that uses Gnulib > 1) with a lib/ dir that contains the 'non-recursive-gnulib-prefix-hack' > but not the 'alloca-opt' module, > 2) with a tests/ dir that contains the 'alloca-opt' module, > > Automake produces an error: > tests/Makefile.am:58: error: required fil

non-recursive-gnulib-prefix-hack: Remove obsolete code

2021-12-15 Thread Bruno Haible
The non-recursive-gnulib-prefix-hack module contains code to transform t-$@ patterns. But such patterns don't exist any more nowadays (probably for several years already). So, let me remove this obsolete code. 2021-12-15 Bruno Haible non-recursive-gnulib-prefix-hack: Remove obsolete c

Indentation fix

2021-12-15 Thread Bruno Haible
2021-12-15 Bruno Haible Indentation fix. * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Correct indentation. diff --git a/m4/include_next.m4 b/m4/include_next.m4 index bdd542bc6..7dcd1cef0 100644 --- a/m4/include_next.m4 +++ b/m4/include_next.m4 @@ -193,9 +193,9 @@ AC_DEFUN([