tests/local.mk: fix dependencies for generating the wrapper template

Generating the tests wrapper template currently depends on the
dependencies needed for the frozen lib/m4sugar/m4sh.m4f. However,
it also requires that frozen sugar to actually be generated, or the
build will fail if it is not (or at least if it is in the process of
being generated).

Change the dependency to actually depend on the generated file, rather
than on its dependencies.

This kind of failure has been noticed on highly parallel builds on very
loaded machines.

Copyright-paperwork-exempt: yes
This commit is contained in:
Yann E. MORIN 2025-01-29 15:29:18 -07:00 committed by Paul Eggert
parent 4c8c67c444
commit a10ce78ead

View File

@ -63,7 +63,7 @@ CLEANFILES += \
tests/wrapper.in \
$(wrappers)
tests/wrapper.in: $(srcdir)/tests/wrapper.as $(m4sh_m4f_dependencies)
tests/wrapper.in: $(srcdir)/tests/wrapper.as lib/m4sugar/m4sh.m4f
$(MY_AUTOM4TE) --language=M4sh $(srcdir)/tests/wrapper.as -o $@
edit_wrapper = sed \