From 6fe7e32268c0b7d1cbe6a1480a99b8b24f122b55 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 2 Sep 2025 20:01:55 +0300 Subject: build woman-pages via templates since pattern rules with grouped targets appear to be broken in some versions of GNU Make Hopefully fixes the Mac OS CI and nightly builds. --- doc/Makefile.am | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/Makefile.am b/doc/Makefile.am index 11604a0..9929099 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -80,9 +80,18 @@ EXTRA_DIST += tutorial.ms.in CLEANFILES += $(women_DATA) -%.woman %.woman.tec &: % sciteco.tmac grosciteco.tes - @GROFF@ @GROFF_FLAGS@ -wall -Z -Tutf8 -t -man -M@srcdir@ -msciteco $< | \ - $(SCITECO_FULL) -im -- @srcdir@/grosciteco.tes $@ +# Using pattern rules is bugged in some versions of GNU make in +# combination with grouped targets (&:). +define woman_man_rule +$(1).woman $(1).woman.tec &: $(1) sciteco.tmac grosciteco.tes + @GROFF@ @GROFF_FLAGS@ -wall -Z -Tutf8 -t -man -M@srcdir@ -msciteco $$< | \ + $(SCITECO_FULL) -im -- @srcdir@/grosciteco.tes $$@ +endef + +$(eval $(call woman_man_rule,grosciteco.tes.1)) +$(eval $(call woman_man_rule,tedoc.tes.1)) +$(eval $(call woman_man_rule,sciteco.1)) +$(eval $(call woman_man_rule,sciteco.7)) tutorial.woman tutorial.woman.tec &: tutorial.ms sciteco.tmac grosciteco.tes @GROFF@ @GROFF_FLAGS@ -wall -Z -Tutf8 -t -ms -M@srcdir@ -msciteco $< | \ -- cgit v1.2.3