summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am4
-rw-r--r--doc/api/Makefile.am71
-rwxr-xr-xdoc/api/clean.sh7
-rw-r--r--doc/api/meson.build19
-rw-r--r--doc/meson.build1
5 files changed, 20 insertions, 82 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index 1dc641b..0000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,4 +0,0 @@
-SUBDIRS = \
- api
-
--include $(top_srcdir)/git.mk
diff --git a/doc/api/Makefile.am b/doc/api/Makefile.am
deleted file mode 100644
index 617692a..0000000
--- a/doc/api/Makefile.am
+++ /dev/null
@@ -1,71 +0,0 @@
-AUTOMAKE_OPTIONS = 1.7
-
-# The name of the module.
-DOC_MODULE=colord-gtk
-
-# The top-level SGML file.
-DOC_MAIN_SGML_FILE=colord-gtk-docs.xml
-
-# Extra options to supply to gtkdoc-scan
-SCAN_OPTIONS=--ignore-headers=config.h
-
-# The directory containing the source code. Relative to $(srcdir)
-DOC_SOURCE_DIR=$(top_srcdir)/libcolord-gtk $(top_builddir)/libcolord-gtk
-
-# Used for dependencies
-HFILE_GLOB=
-CFILE_GLOB=
-
-# Headers to ignore
-IGNORE_HFILES= \
- config.h
-
-# CFLAGS and LDFLAGS for compiling scan program. Only needed
-# if $(DOC_MODULE).types is non-empty.
-INCLUDES = \
- $(GLIB_CFLAGS) \
- -I$(top_srcdir)/libcolord-gtk \
- -I$(top_builddir)/libcolord-gtk
-
-COLORD_LIBS = $(top_builddir)/libcolord-gtk/libcolord-gtk.la
-
-GTKDOC_LIBS = \
- $(GLIB_LIBS) \
- $(COLORD_LIBS)
-
-# Extra options to supply to gtkdoc-mkdb
-MKDB_OPTIONS=--sgml-mode --output-format=xml
-
-# Extra options to supply to gtkdoc-mktmpl
-MKTMPL_OPTIONS=
-
-# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
-content_files = \
- ../../COPYING \
- version.xml
-
-# Images to copy into HTML directory
-HTML_IMAGES = \
- $(NULL)
-
-# Extra options to supply to gtkdoc-fixref
-FIXXREF_OPTIONS=
-
-MAINTAINERCLEANFILES = \
- *~ \
- Makefile.in \
- colord-gtk.types \
- colord-*.txt
-
-if ENABLE_GTK_DOC
-include $(top_srcdir)/gtk-doc.make
-CLEANFILES += tmpl
-else
-EXTRA_DIST =
-CLEANFILES = tmpl
-endif
-
-# Version information for marking the documentation
-EXTRA_DIST += version.xml.in
-
--include $(top_srcdir)/git.mk
diff --git a/doc/api/clean.sh b/doc/api/clean.sh
deleted file mode 100755
index ff8c845..0000000
--- a/doc/api/clean.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-rm -f *.txt
-rm -f colord-scan*
-rm -f colord.types
-rm -rf html/
-rm -rf tmpl/
-rm -f *.stamp
-
diff --git a/doc/api/meson.build b/doc/api/meson.build
new file mode 100644
index 0000000..5e641fb
--- /dev/null
+++ b/doc/api/meson.build
@@ -0,0 +1,19 @@
+version_xml = configure_file(
+ input : 'version.xml.in',
+ output : 'version.xml',
+ configuration : conf,
+)
+
+gnome.gtkdoc(
+ 'colord-gtk',
+ src_dir : [
+ join_paths(meson.source_root(), 'libcolord-gtk'),
+ join_paths(meson.build_root(), 'libcolord-gtk'),
+ ],
+ main_xml : 'colord-gtk-docs.xml',
+ content_files : [
+ '../../COPYING',
+ version_xml,
+ ],
+ install : true
+)
diff --git a/doc/meson.build b/doc/meson.build
new file mode 100644
index 0000000..dc2bb41
--- /dev/null
+++ b/doc/meson.build
@@ -0,0 +1 @@
+subdir('api')