summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-03-14 10:58:33 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2017-03-14 11:03:48 +0000
commit66746cfa3de8cdb272c30da5c762735265e3b040 (patch)
treefb82bb99acd02f4962edd8ed7d005a090f1703f5
parent1447d8b527864c10899dab3733068407b82fb19b (diff)
downloadjson-glib-66746cfa3de8cdb272c30da5c762735265e3b040.tar.gz
Move the reference build down one level
There's no point in having the API reference in its own sub-directory: it's the only documentation we have.
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac2
-rw-r--r--doc/Makefile.am78
-rw-r--r--doc/json-glib-docs.xml (renamed from doc/reference/json-glib-docs.xml)0
-rw-r--r--doc/json-glib-format.xml (renamed from doc/reference/json-glib-format.xml)0
-rw-r--r--doc/json-glib-overrides.txt (renamed from doc/reference/json-glib-overrides.txt)0
-rw-r--r--doc/json-glib-sections.txt (renamed from doc/reference/json-glib-sections.txt)0
-rw-r--r--doc/json-glib-validate.xml (renamed from doc/reference/json-glib-validate.xml)0
-rw-r--r--doc/meson.build (renamed from doc/reference/meson.build)0
-rw-r--r--doc/reference/Makefile.am78
-rw-r--r--doc/reference/version.xml.in1
-rw-r--r--doc/xml/gtkdocentities.ent.in (renamed from doc/reference/xml/gtkdocentities.ent.in)0
-rw-r--r--doc/xml/meson.build (renamed from doc/reference/xml/meson.build)0
-rw-r--r--meson.build2
14 files changed, 75 insertions, 92 deletions
diff --git a/Makefile.am b/Makefile.am
index d932b4f..328b384 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,9 +3,9 @@ ACLOCAL_AMFLAGS = -I build/autotools
EXTRA_DIST = \
meson.build \
meson_options.txt \
- doc/reference/meson.build \
- doc/reference/xml/meson.build \
- doc/reference/xml/gtkdocentities.ent.in \
+ doc/meson.build \
+ doc/xml/meson.build \
+ doc/xml/gtkdocentities.ent.in \
json-glib/meson.build \
json-glib/tests/meson.build \
json-glib/tests/gen-installed-test.py \
diff --git a/configure.ac b/configure.ac
index 8023a53..11983c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -392,8 +392,6 @@ AC_CONFIG_FILES([
json-glib/tests/Makefile
doc/Makefile
- doc/reference/Makefile
- doc/reference/version.xml
po/Makefile.in
])
diff --git a/doc/Makefile.am b/doc/Makefile.am
index fd91f01..0a021ce 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,11 +1,75 @@
-SUBDIRS = reference
+DOC_MODULE = json-glib
+DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
+DOC_SOURCE_DIR = $(top_srcdir)/json-glib $(top_builddir)/json-glib
-test-report:
- @true
+SCANGOBJ_OPTIONS =
+SCAN_OPTIONS = --deprecated-guards="JSON_DISABLE_DEPRECATED" --rebuild-types
+MKDB_OPTIONS = --output-format=xml --name-space=json
+MKTMPL_OPTIONS =
+FIXXREF_OPTIONS = \
+ --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib \
+ --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gobject \
+ --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gio
-test:
- @true
+HFILE_GLOB = $(top_srcdir)/json-glib/*.h $(top_builddir)/json-glib/*.h
+CFILE_GLOB = $(top_srcdir)/json-glib/*.c
-check-local: test
+IGNORE_HFILES = \
+ config.h \
+ json-scanner.h \
+ json-types-private.h \
+ json-gobject-private.h \
+ json-private.h \
+ json-marshal.h \
+ json-glib.h \
+ json-enum-types.h \
+ json-debug.h
-.PHONY: test-report test check-local
+EXTRA_HFILES =
+
+HTML_IMAGES =
+
+content_files = \
+ json-glib-format.xml \
+ json-glib-validate.xml
+
+expand_content_files =
+
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) $(JSON_CFLAGS)
+GTKDOC_LIBS = $(top_builddir)/json-glib/libjson-glib-1.0.la $(JSON_LIBS)
+
+include $(top_srcdir)/gtk-doc.make
+
+man_MANS =
+
+if ENABLE_GTK_DOC
+TESTS_ENVIRONMENT = \
+ DOC_MODULE=$(DOC_MODULE) \
+ DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
+ SRCDIR=$(abs_srcdir) \
+ BUILDDIR=$(abs_builddir)
+
+TESTS = $(GTKDOC_CHECK)
+endif
+
+if ENABLE_MAN
+man_MANS += \
+ json-glib-format.1 \
+ json-glib-validate.1
+
+XSLTPROC_FLAGS = \
+ --nonet \
+ --stringparam man.output.quietly 1 \
+ --stringparam funcsynopsis.style ansi \
+ --stringparam man.th.extra1.suppress 1 \
+ --stringparam man.authors.section.enabled 0 \
+ --stringparam man.copyright.section.enabled 0
+
+.xml.1:
+ $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+
+endif
+
+CLEANFILES ?=
+CLEANFILES += $(man_MANS)
+EXTRA_DIST += $(man_MANS)
diff --git a/doc/reference/json-glib-docs.xml b/doc/json-glib-docs.xml
index cd7fec6..cd7fec6 100644
--- a/doc/reference/json-glib-docs.xml
+++ b/doc/json-glib-docs.xml
diff --git a/doc/reference/json-glib-format.xml b/doc/json-glib-format.xml
index d4ba59e..d4ba59e 100644
--- a/doc/reference/json-glib-format.xml
+++ b/doc/json-glib-format.xml
diff --git a/doc/reference/json-glib-overrides.txt b/doc/json-glib-overrides.txt
index 68de4f0..68de4f0 100644
--- a/doc/reference/json-glib-overrides.txt
+++ b/doc/json-glib-overrides.txt
diff --git a/doc/reference/json-glib-sections.txt b/doc/json-glib-sections.txt
index 970770a..970770a 100644
--- a/doc/reference/json-glib-sections.txt
+++ b/doc/json-glib-sections.txt
diff --git a/doc/reference/json-glib-validate.xml b/doc/json-glib-validate.xml
index 1cd5c6d..1cd5c6d 100644
--- a/doc/reference/json-glib-validate.xml
+++ b/doc/json-glib-validate.xml
diff --git a/doc/reference/meson.build b/doc/meson.build
index 238b840..238b840 100644
--- a/doc/reference/meson.build
+++ b/doc/meson.build
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am
deleted file mode 100644
index a497e9c..0000000
--- a/doc/reference/Makefile.am
+++ /dev/null
@@ -1,78 +0,0 @@
-DOC_MODULE = json-glib
-DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
-DOC_SOURCE_DIR = $(top_srcdir)/json-glib $(top_builddir)/json-glib
-
-SCANGOBJ_OPTIONS =
-SCAN_OPTIONS = --deprecated-guards="JSON_DISABLE_DEPRECATED" --rebuild-types
-MKDB_OPTIONS = --output-format=xml --name-space=json
-MKTMPL_OPTIONS =
-FIXXREF_OPTIONS = \
- --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib \
- --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gobject \
- --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gio
-
-HFILE_GLOB = $(top_srcdir)/json-glib/*.h $(top_builddir)/json-glib/*.h
-CFILE_GLOB = $(top_srcdir)/json-glib/*.c
-
-IGNORE_HFILES = \
- config.h \
- json-scanner.h \
- json-types-private.h \
- json-gobject-private.h \
- json-private.h \
- json-marshal.h \
- json-glib.h \
- json-enum-types.h \
- json-debug.h
-
-EXTRA_HFILES =
-
-HTML_IMAGES =
-
-content_files = \
- json-glib-format.xml \
- json-glib-validate.xml \
- version.xml
-
-expand_content_files =
-
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) $(JSON_CFLAGS)
-GTKDOC_LIBS = $(top_builddir)/json-glib/libjson-glib-1.0.la $(JSON_LIBS)
-
-include $(top_srcdir)/gtk-doc.make
-
-EXTRA_DIST += version.xml.in
-
-man_MANS =
-
-if ENABLE_GTK_DOC
-TESTS_ENVIRONMENT = \
- DOC_MODULE=$(DOC_MODULE) \
- DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
- SRCDIR=$(abs_srcdir) \
- BUILDDIR=$(abs_builddir)
-
-TESTS = $(GTKDOC_CHECK)
-endif
-
-if ENABLE_MAN
-man_MANS += \
- json-glib-format.1 \
- json-glib-validate.1
-
-XSLTPROC_FLAGS = \
- --nonet \
- --stringparam man.output.quietly 1 \
- --stringparam funcsynopsis.style ansi \
- --stringparam man.th.extra1.suppress 1 \
- --stringparam man.authors.section.enabled 0 \
- --stringparam man.copyright.section.enabled 0
-
-.xml.1:
- $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
-
-endif
-
-CLEANFILES ?=
-CLEANFILES += $(man_MANS)
-EXTRA_DIST += $(man_MANS)
diff --git a/doc/reference/version.xml.in b/doc/reference/version.xml.in
deleted file mode 100644
index c8d7ac8..0000000
--- a/doc/reference/version.xml.in
+++ /dev/null
@@ -1 +0,0 @@
-@JSON_VERSION@ \ No newline at end of file
diff --git a/doc/reference/xml/gtkdocentities.ent.in b/doc/xml/gtkdocentities.ent.in
index f12c9ff..f12c9ff 100644
--- a/doc/reference/xml/gtkdocentities.ent.in
+++ b/doc/xml/gtkdocentities.ent.in
diff --git a/doc/reference/xml/meson.build b/doc/xml/meson.build
index 668435a..668435a 100644
--- a/doc/reference/xml/meson.build
+++ b/doc/xml/meson.build
diff --git a/meson.build b/meson.build
index 3192d4c..e2e8328 100644
--- a/meson.build
+++ b/meson.build
@@ -154,5 +154,5 @@ subdir('json-glib')
subdir('po')
if get_option('enable-gtk-doc')
- subdir('doc/reference')
+ subdir('doc')
endif