aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-09-02 20:01:55 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-09-02 20:01:55 +0300
commit6fe7e32268c0b7d1cbe6a1480a99b8b24f122b55 (patch)
treefcc6248ef8fa7b803ecd7f06c244f4026f5285e9 /doc
parent2747d3c8005e6978d659eb7d9b109237a4896b71 (diff)
downloadsciteco-6fe7e32268c0b7d1cbe6a1480a99b8b24f122b55.tar.gz
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am15
1 files changed, 12 insertions, 3 deletions
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 $< | \