From e1274045ece68af95e5a5991313aad1e90b99374 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Sep 2014 12:15:12 -0400 Subject: Makefile.am: New "wikiman" target --- diff --git a/Makefile.am b/Makefile.am index 681fd47..98a2ed9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -130,6 +130,21 @@ todo: printf '\n'; \ fi +wikiman_script = \ + H; \ + $${ \ + g; \ + s|^.*]*>\([^<]*\)|[[!meta title="\1"]]|; \ + s|
\n*.*$$||; \ + p; \ + }; +wikiman: $(man1_MANS) $(man8_MANS) + set -e; \ + for f in $(man1_MANS) $(man8_MANS); do \ + groff -m man -T html "$${f}" | sed -n '$(wikiman_script)' \ + >"$${f}.mdwn"; \ + done + install-data-local: $(locale_MESSAGES) @$(NORMAL_INSTALL) for f in $(locale_MESSAGES); do \ @@ -155,6 +170,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