diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 15 | ||||
-rw-r--r-- | doc/Makefile.am | 2 | ||||
-rw-r--r-- | doc/manual.texi | 33 | ||||
-rw-r--r-- | doc/version.texi | 4 |
6 files changed, 61 insertions, 0 deletions
@@ -30,3 +30,6 @@ src/lib/test_merchant_api src/lib/test_merchant_api_home/.local/share/taler/exchange/live-keys/ taler_merchant_config.h taler_merchant_config.h.in +doc/* +!doc/*.texi +!doc/*.am diff --git a/Makefile.am b/Makefile.am index 4081e575..101b5c48 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,10 @@ # This Makefile is in the public domain SUBDIRS = src copylib examples +if WITH_DOC + SUBDIRS += doc +endif + ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = AUTHORS COPYING.GPL COPYING.AGPL COPYING.LGPL diff --git a/configure.ac b/configure.ac index 6389eed2..ebd74ed5 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,20 @@ CFLAGS="-Wall $CFLAGS" # Checks for header files. AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h]) +# Check for compiling documentation +with_doc = yes +AC_MSG_CHECKING([for compiling documentation]) +AC_ARG_WITH(doc, + [AS_HELP_STRING([--with-doc], [Compile documentation])], + [AC_MSG_RESULT([given])], + [AC_MSG_RESULT(not given) + with_doc = no]) + +AS_CASE([$with_doc], + [yes], AC_CHECK_PROG([texicomp], [texi2pdf], [yes])) +AS_IF([test "x$with_doc" = "xyes" -a "x$texicomp" != "xyes"], AC_MSG_ERROR([A texinfo compiler is needed. Install texi2pdf.])) +AM_CONDITIONAL([WITH_DOC], [test "x$with_doc" = "xyes"]) + # Check for GNUnet's libgnunetutil. libgnunetutil=0 AC_MSG_CHECKING([for libgnunetutil]) @@ -267,6 +281,7 @@ examples/blog/web-common/Makefile examples/shop/Makefile examples/shop/web-common/Makefile copylib/Makefile +doc/Makefile src/Makefile src/include/Makefile src/backenddb/Makefile diff --git a/doc/Makefile.am b/doc/Makefile.am index e69de29b..10da2d7d 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -0,0 +1,2 @@ +info_TEXINFOS = manual.texi +manual_TEXINFOS = version.texi diff --git a/doc/manual.texi b/doc/manual.texi new file mode 100644 index 00000000..2b6eb4a6 --- /dev/null +++ b/doc/manual.texi @@ -0,0 +1,33 @@ +\input texinfo @c -*-texinfo-*- +@c %**start of header +@setfilename manual.info +@include version.texi +@settitle GNU Taler, merchant backend manual @value{VERSION} + +@c Define a new index for options. +@defcodeindex op +@c Combine everything into one index (arbitrarily chosen to be the +@c concept index). +@syncodeindex op cp +@c %**end of header + +@copying +This manual is for GNU Taler merchant backend (version @value{VERSION}, @value{UPDATED}), + +Copyright @copyright{} 2016 INRIA + +@quotation +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with no +Invariant Sections, with no Front-Cover Texts, and with no Back-Cover +Texts. A copy of the license is included in the section entitled +``GNU Free Documentation License''. +@end quotation +@end copying +@c If your manual is published on paper by the FSF, it should include +@c the standard FSF Front-Cover and Back-Cover Texts, as given in +@c maintain.texi. +@printindex cp + +@bye diff --git a/doc/version.texi b/doc/version.texi new file mode 100644 index 00000000..9b62babf --- /dev/null +++ b/doc/version.texi @@ -0,0 +1,4 @@ +@set UPDATED 20 October 2016 +@set UPDATED-MONTH October 2016 +@set EDITION 0.0 +@set VERSION 0.0 |