gbranden pushed a commit to branch master
in repository groff.

commit 1df2c317f786739bb93cc4b30335fd29bef48ef6
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jun 14 10:22:45 2026 -0500

    Makefile.am: Fix coverage generation.
    
    * Makefile.am (gen-coverage): Pass `--prefix` and `--ignore-errors` to
      genhtml(1) to kludge around the problem of Bison/YACC-generated source
      files being present in the _build_ tree rather than the source tree
      when doing out-of-tree (`VPATH`) builds.
    
    Fixes <https://savannah.gnu.org/bugs/?68304>.
---
 ChangeLog   | 10 ++++++++++
 Makefile.am |  5 +++++
 2 files changed, 15 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index ce918ac59..ee51c486d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,16 @@
        * src/preproc/pic/pic.am:
        * src/preproc/pic/refer.am: Organize consistently with "eqn.am".
 
+2026-06-14  G. Branden Robinson <[email protected]>
+
+       * Makefile.am: Fix coverage generation.
+       (gen-coverage): Pass `--prefix` and `--ignore-errors` to
+       genhtml(1) to kludge around the problem of Bison/YACC-generated
+       source files being present in the _build_ tree rather than the
+       source tree when doing out-of-tree (`VPATH`) builds.
+
+       Fixes <https://savannah.gnu.org/bugs/?68304>.
+
 2026-06-14  G. Branden Robinson <[email protected]>
 
        * configure.ac: Make build robust against combination of
diff --git a/Makefile.am b/Makefile.am
index e9f1d2269..8d0968025 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -891,8 +891,13 @@ build-coverage:
        lcov --directory . --output-file \
          $(COVERAGE_OUT)/$(PACKAGE).info --capture
 
+# Use `--prefix` and `--ignore-errors` to kludge around the problem of
+# Bison/YACC-generated source files being present in the _build_ tree
+# rather than the source tree when doing out-of-tree (`VPATH`) builds.
 gen-coverage:
        genhtml --output-directory $(COVERAGE_OUT) \
+         --prefix "$(abs_builddir)" \
+         --ignore-errors source \
          $(COVERAGE_OUT)/$(PACKAGE).info \
          --frames --legend \
          --title "$(PACKAGE_NAME)"

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to