summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSiegfried-Angel Gevatter Pujals <rainct@ubuntu.com>2012-06-26 17:09:12 +0200
committerSiegfried-Angel Gevatter Pujals <rainct@ubuntu.com>2012-06-26 17:09:12 +0200
commit514cd99a641c3470e8db53d95c89226ba64b34be (patch)
treee3166305cd08fff95210495b06bda2bd86b80052 /doc
parent6c8aaa0e62fb062d0db2004b46298c5e9f42703a (diff)
Fix libzeitgeist doc generation
Autofool shamelessly stolen from sqlheavy.
Diffstat (limited to 'doc')
-rw-r--r--doc/libzeitgeist/Makefile.am91
-rw-r--r--doc/libzeitgeist/zeitgeist-2.0-docs.sgml54
2 files changed, 36 insertions, 109 deletions
diff --git a/doc/libzeitgeist/Makefile.am b/doc/libzeitgeist/Makefile.am
index e38e957d..bdb20807 100644
--- a/doc/libzeitgeist/Makefile.am
+++ b/doc/libzeitgeist/Makefile.am
@@ -1,55 +1,36 @@
-## Process this file with automake to produce Makefile.in
-
-# automake requirements
-AUTOMAKE_OPTIONS = 1.7
-
-# The name of the module
-DOC_MODULE=zeitgeist-2.0
-
-# The top-level SGML file. You can change this if you want to.
-DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml
-
-# The directory containing the source code. Relative to $(srcdir).
-DOC_SOURCE_DIR = ../../libzeitgeist
-
-# Extra options to pass to gtkdoc-scangobj. Not normally needed.
-SCANGOBJ_OPTIONS =
-
-# Extra options to supply to gtkdoc-scan.
-# Fx --rebuild-types --rebuild-sections
-SCAN_OPTIONS =
-
-# Extra options to supply to gtkdoc-mkdb.
-MKDB_OPTIONS = --sgml-mode --output-format=xml --ignore-files=trio
-
-# Extra options to supply to gtkdoc-fixref. Not normally needed.
-FIXXREF_OPTIONS =
-
-# Used for dependencies. The docs will be rebuilt if any of these change.
-HFILE_GLOB = $(top_srcdir)/libzeitgeist/zeitgeist.h
-CFILE_GLOB = $(top_srcdir)/libzeitgeist/*.c
-
-# Header files to ignore when scanning.
-IGNORE_HFILES =
-
-# Images to copy into HTML directory.
-HTML_IMAGES =
-
-# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
-content_files =
-
-# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
-INCLUDES= \
- -I$(top_srcdir)/libzeitgeist \
- $(ZEITGEIST_CFLAGS)
-
-GTKDOC_LIBS = \
- $(ZEITGEIST_LIBS) \
- $(top_builddir)/libzeitgeist/libzeitgeist-2.0.la
-
-# This includes the standard gtk-doc make rules, copied by gtkdocize.
-include $(top_srcdir)/gtk-doc.make
-
-# Other files to distribute
-# e.g. EXTRA_DIST += version.xml.in
-EXTRA_DIST +=
+NULL =
+
+if ENABLE_DOCS
+
+# valadoc in Ubuntu doesn't find it vala-0.16/vapi
+VALADOC_FLAGS = \
+ --force \
+ --vapidir $(top_srcdir)/libzeitgeist \
+ --vapidir /usr/share/vala-0.16/vapi/ \
+ --pkg gio-2.0 \
+ --pkg sqlite3 \
+ --basedir $(top_srcdir)/libzeitgeist \
+ --package-name libzeitgeist2 \
+ --package-version $(PACKAGE_VERSION) \
+ $(wildcard $(top_srcdir)/libzeitgeist/*.vala) \
+ $(NULL)
+
+valadoc:
+ $(VALADOC) \
+ -o valadoc \
+ $(VALADOC_FLAGS) \
+ $(NULL)
+
+devhelp:
+ $(VALADOC) \
+ -o devhelp \
+ --doclet devhelp \
+ $(VALADOC_FLAGS) \
+ $(NULL)
+
+clean-local:
+ rm -rf valadoc devhelp
+
+all: valadoc devhelp
+
+endif
diff --git a/doc/libzeitgeist/zeitgeist-2.0-docs.sgml b/doc/libzeitgeist/zeitgeist-2.0-docs.sgml
deleted file mode 100644
index 61292618..00000000
--- a/doc/libzeitgeist/zeitgeist-2.0-docs.sgml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
- "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
-[
- <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
-]>
-<book id="index">
- <bookinfo>
- <title>API Documentation for the Zeitgeist Client Library</title>
- </bookinfo>
-
- <chapter>
- <title>Classes</title>
- <xi:include href="xml/zeitgeist-event.xml"/>
- <xi:include href="xml/zeitgeist-log.xml"/>
- <xi:include href="xml/zeitgeist-monitor.xml"/>
- <xi:include href="xml/zeitgeist-result-set.xml"/>
- <xi:include href="xml/zeitgeist-subject.xml"/>
- <xi:include href="xml/zeitgeist-timerange.xml"/>
- </chapter>
-
- <chapter>
- <title>Utility Functions</title>
- <xi:include href="xml/zeitgeist-mimetypes.xml"/>
- <xi:include href="xml/zeitgeist-timestamp.xml"/>
- <xi:include href="xml/zeitgeist-symbols.xml"/>
- </chapter>
-
- <chapter>
- <title>Enumerations and Macros</title>
- <xi:include href="xml/zeitgeist-enums.xml"/>
- <xi:include href="xml/zeitgeist-ontology-interpretations.xml"/>
- <xi:include href="xml/zeitgeist-ontology-manifestations.xml"/>
- </chapter>
-
- <chapter>
- <title>API for Zeitgeist Extensions</title>
- <xi:include href="xml/zeitgeist-index.xml"/>
- <xi:include href="xml/zeitgeist-data-source.xml"/>
- <xi:include href="xml/zeitgeist-data-source-registry.xml"/>
- </chapter>
-
- <chapter id="object-tree">
- <title>Object Hierarchy</title>
- <xi:include href="xml/tree_index.sgml"/>
- </chapter>
-
- <index id="api-index-full">
- <title>API Index</title>
- <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
- </index>
-
- <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
-</book>