aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile.am23
1 files changed, 9 insertions, 14 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 9929099..8ac9fad 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -80,20 +80,15 @@ EXTRA_DIST += tutorial.ms.in
CLEANFILES += $(women_DATA)
-# 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
+# NOTE: grosciteco.tes generates two artifacts, but two targets in one rule would be independent.
+# Grouped targets (&:) on the other hand are unreliable/buggy.
+%.woman.tec : %.woman;
+
+%.woman : % sciteco.tmac grosciteco.tes
+ @GROFF@ @GROFF_FLAGS@ -wall -Z -Tutf8 -t -man -M@srcdir@ -msciteco $< | \
+ $(SCITECO_FULL) -im -- @srcdir@/grosciteco.tes $@
+
+tutorial.woman : tutorial.ms sciteco.tmac grosciteco.tes
@GROFF@ @GROFF_FLAGS@ -wall -Z -Tutf8 -t -ms -M@srcdir@ -msciteco $< | \
$(SCITECO_FULL) -im -- @srcdir@/grosciteco.tes $@