From 7b8afe0116fca9ce4466d96801d120bb92b3563a Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Tue, 1 Jun 2010 22:52:59 +0200 Subject: [PATCH] Makefile targets to generate a manpage This is just the start for generating a manpage, which is not made by default yet. The content and configuration need to be improved/fixed/written in doc/nobug7.conf for that. --- Makefile.am | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index c122e0d..519a599 100644 --- a/Makefile.am +++ b/Makefile.am @@ -77,6 +77,17 @@ nobug_manual.txt: doc/nobug_manual.conf doc/asciidoc.pawk doc/verbatim.pawk $(ma $(manual_ASCIIDOCS) ) >$(top_builddir)/nobug_manual.txt +nobug7.txt: doc/nobug7.conf doc/asciidoc.pawk doc/verbatim.pawk $(manual_ASCIIDOCS) $(wildcard $(top_srcdir)/doc/*.txt) + @which gawk >/dev/null || ( echo "gawk not installed!"; exit 1; ) + ( cd $(top_srcdir) ; ./pipadoc doc/nobug7.conf doc/asciidoc.pawk doc/verbatim.pawk \ + $(patsubst $(top_srcdir)/%,%,$(wildcard $(top_srcdir)/doc/*.txt)) \ + $(manual_ASCIIDOCS) ) >$(top_builddir)/nobug7.txt + + +nobug.7: nobug7.txt + a2x -f manpage nobug7.txt + + test_manual.txt: doc/asciidoc.pawk tests/test.sh @which gawk >/dev/null || ( echo "gawk not installed!"; exit 1; ) ( cd $(top_srcdir); COM='#' ./pipadoc doc/asciidoc.pawk tests/test.sh ) >$(top_builddir)/test_manual.txt @@ -91,7 +102,7 @@ test_manual.txt: doc/asciidoc.pawk tests/test.sh a2x -f ps $< doc: nobug_manual.html nobug_manual.pdf -# TODO create manpage + README: nobug_manual.txt cp nobug_manual.txt $(top_srcdir)/README || true -- 2.11.4.GIT