tools: gnulib: fix broken install of .m4 files
authorChristian Marangi <[email protected]>
Thu, 4 Dec 2025 15:32:03 +0000 (16:32 +0100)
committerChristian Marangi <[email protected]>
Thu, 4 Dec 2025 15:35:40 +0000 (16:35 +0100)
commit78a8cfb57772138ff5b925b9d69928e5878931bf
tree7ec71d408e704058077d7ab7dfe27a60750c00d5
parent9c6dbb0e3d6c165c4924dd4ab10b27778a8c520c
tools: gnulib: fix broken install of .m4 files

Makefile foreach works only on parsing the Makefile and in this specific
case only works if the package is already extracted and file actually
exist.

On scenario where the package still has to be built, foreach doesn't
find any file causing Host/Install to not install any .m4 file.

To handle this, use a shell for loop that scan files in the
Host/install.

Fixes: c820f097e0be ("tools: gnulib: install .m4 file with gl_ prefix")
Signed-off-by: Christian Marangi <[email protected]>
tools/gnulib/Makefile