From f6f4e858207d7df649d9848fa91458925b7b1794 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Sep 2014 12:27:55 -0400 Subject: Makefile.am: New "wikiman" target --- diff --git a/Makefile.am b/Makefile.am index 64501a1..c835b73 100644 --- a/Makefile.am +++ b/Makefile.am @@ -74,6 +74,21 @@ do_subst = sed \ all-local: $(locale_MESSAGES) $(archtab_sources) +wikiman_script = \ + H; \ + $${ \ + g; \ + s|^.*]*>\([^<]*\)|[[!meta title="\1"]]|; \ + s|
\n*.*$$||; \ + p; \ + }; +wikiman: $(man1_MANS) + set -e; \ + for f in $(man1_MANS); do \ + groff -m man -T html "$${f}" | sed -n '$(wikiman_script)' \ + >"$${f}.mdwn"; \ + done + install-data-local: $(locale_MESSAGES) $(archtab_sources) @$(NORMAL_INSTALL) for f in $(locale_MESSAGES); do \ @@ -121,6 +136,9 @@ uninstall-hook: fi; \ done +clean-local: + rm -f man/*.*.mdwn + really-clean: distclean rm -Rf $(srcdir)/aclocal.m4 $(srcdir)/autom4te.cache/ \ $(srcdir)/configure \ -- cgit v0.9.1