+TMPLMAN=$(foreach man,$(man_MANS),$(man).tmpl)
+$(TMPLMAN) : %.tmpl : % $(top_srcdir)/scripts/htmlman
+ rm -f $@.new
+ $(top_srcdir)/scripts/htmlman -stdhead $< >$@.new
+ chmod 444 $@.new
+ mv -f $@.new $@
+
+disorder_templates.5.in: disorder_templates.5.head disorder_templates.5.tail \
+ $(top_srcdir)/lib/macros-builtin.c \
+ $(top_srcdir)/cgi/macros-disorder.c \
+ $(top_srcdir)/scripts/macro-docs
+ rm -f disorder_templates.5.new
+ cat ${srcdir}/disorder_templates.5.head >> disorder_templates.5.new
+ $(top_srcdir)/scripts/macro-docs >> disorder_templates.5.new \
+ $(top_srcdir)/lib/macros-builtin.c \
+ $(top_srcdir)/cgi/macros-disorder.c
+ cat ${srcdir}/disorder_templates.5.tail >> disorder_templates.5.new
+ mv disorder_templates.5.new disorder_templates.5.in
+
+disorder_actions.5.in: disorder_actions.5.head disorder_actions.5.tail \
+ $(top_srcdir)/lib/macros-builtin.c \
+ $(top_srcdir)/cgi/actions.c \
+ $(top_srcdir)/scripts/macro-docs
+ rm -f disorder_actions.5.new
+ cat ${srcdir}/disorder_actions.5.head >> disorder_actions.5.new
+ $(top_srcdir)/scripts/macro-docs >> disorder_actions.5.new \
+ $(top_srcdir)/cgi/actions.c
+ cat ${srcdir}/disorder_actions.5.tail >> disorder_actions.5.new
+ mv disorder_actions.5.new disorder_actions.5.in
+
+if GROG
+check: $(man_MANS)
+ @set -e; for m in $(man_MANS); do \
+ echo \`$(GROG) $$m\` -Tutf8 -wall \>/dev/null ;\
+ echo `$(GROG) $$m` -Tutf8 -wall >/dev/null ;\
+ done
+endif