Simplify the structure of the Makefile, because now we don't need so
many different variables. Also, list the m4 directory entirely in
EXTRA_DIST instead of individual files, to reduce information
duplication.
I also introduce some level of checking the regenerate.sh script.
It should catch cases where the list of generated files gets out
of sync between Makefile.am and regenerate.sh
2025-06-10 François-Xavier Coudert <fxcoudert@gcc.gnu.org>
libgfortran/ChangeLog:
PR libfortran/116400
* Makefile.am: Simplify logic.
* Makefile.in: Regenerate.
* regenerate.sh: Add some checks.
Move the regeneration of libgfortran source files from the Makefile
to a standalone script. We were previously highjacking the
maintainer mode of autoconf/automake in a way that was not adequate,
leading to various issues. Bring our behavior in line with other
GCC libraries.
2025-06-09 François-Xavier Coudert <fxcoudert@gcc.gnu.org>
libgfortran/ChangeLog:
PR libfortran/116400
* Makefile.am: Remove source file regeneration rules.
* Makefile.in: Regenerate.
* regenerate.sh: New file.