diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-06-28 18:27:55 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-06-28 18:33:15 -0400 |
commit | 413a553fd5f86088395d942c85a78debdec32a6d (patch) | |
tree | 506ef6b11db1726c6f5ff8ed501f7be7db7b90e0 | |
parent | 6fc1b6d481387a88b782b3551d793a3850fb6bec (diff) |
Revert "Get api docs building"
Pass --enable-gtk-doc to ./configure to build API docs. Add a
status print-out at the end of configure.ac to show whether gtk-doc
was enabled.
This reverts commit 436386fb11ee56e50c2c76c496b1f6c39530e170.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | docs/Makefile.am | 4 | ||||
-rw-r--r-- | src/main.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index b53f403..d3ccc78 100644 --- a/configure.ac +++ b/configure.ac @@ -219,5 +219,5 @@ echo " cflags: ${CFLAGS} Maintainer mode: ${USE_MAINTAINER_MODE} Building verbose mode: ${enable_verbose_mode} + Building gtk-doc: ${enable_gtk_doc} " - diff --git a/docs/Makefile.am b/docs/Makefile.am index 240af13..342e364 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -20,7 +20,11 @@ MKDB_OPTIONS=--sgml-mode --output-format=xml # Extra options to supply to gtkdoc-mktmpl MKTMPL_OPTIONS= +if ENABLE_GTK_DOC include $(top_srcdir)/gtk-doc.make +else +EXTRA_DIST = +endif # Version information for marking the documentation EXTRA_DIST += version.xml.in @@ -877,7 +877,7 @@ command_search(int argc, const char *argv[]) return 1; } - sprintf(pattern, "*%s*", argv[0]); + snprintf(pattern, sizeof pattern, "*%s*", argv[0]); set = razor_set_open(repo_filename); if (set == NULL) |