Commit 2e648d9f authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Zeeshan Ali

build: Fix gtk-doc build when builddir ≠ srcdir

https://bugs.freedesktop.org/show_bug.cgi?id=96521
parent 4f9fd57c
......@@ -14,7 +14,7 @@ DOC_MAIN_SGML_FILE=geoclue-docs.xml
SCAN_OPTIONS=--ignore-headers=config.h --rebuild-sections --rebuild-types
# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=../public-api
DOC_SOURCE_DIR=$(top_srcdir)/public-api
# Used for dependencies
HFILE_GLOB=
......@@ -24,7 +24,7 @@ CFILE_GLOB=
IGNORE_HFILES= \
$(NULL)
GTKDOC_LIBS = $(top_srcdir)/public-api/libgeoclue-public-api.la
GTKDOC_LIBS = $(top_builddir)/public-api/libgeoclue-public-api.la
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--sgml-mode --output-format=xml
......@@ -32,17 +32,21 @@ MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-mktmpl
MKTMPL_OPTIONS=
# Extra options to supply to gtkdoc-mkhtml
MKHTML_OPTIONS=--path="$(top_srcdir)"
docs-org.freedesktop.GeoClue2.Manager.xml:
cp $(top_srcdir)/src/docs-org.freedesktop.GeoClue2.Manager.xml .
cp $(top_builddir)/src/docs-org.freedesktop.GeoClue2.Manager.xml .
docs-org.freedesktop.GeoClue2.Client.xml:
cp $(top_srcdir)/src/docs-org.freedesktop.GeoClue2.Client.xml .
cp $(top_builddir)/src/docs-org.freedesktop.GeoClue2.Client.xml .
docs-org.freedesktop.GeoClue2.Location.xml:
cp $(top_srcdir)/src/docs-org.freedesktop.GeoClue2.Location.xml .
cp $(top_builddir)/src/docs-org.freedesktop.GeoClue2.Location.xml .
docs-org.freedesktop.GeoClue2.Agent.xml:
cp $(top_srcdir)/src/agent/docs-org.freedesktop.GeoClue2.Agent.xml .
cp $(top_builddir)/src/agent/docs-org.freedesktop.GeoClue2.Agent.xml .
# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
content_files = \
../COPYING \
version.xml \
docs-org.freedesktop.GeoClue2.Manager.xml \
docs-org.freedesktop.GeoClue2.Client.xml \
......
......@@ -22,7 +22,7 @@ CFILE_GLOB=
IGNORE_HFILES= \
$(NULL)
GTKDOC_LIBS = $(top_srcdir)/libgeoclue/libgeoclue-2.la
GTKDOC_LIBS = $(top_builddir)/libgeoclue/libgeoclue-2.la
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--sgml-mode --output-format=xml
......@@ -32,6 +32,7 @@ MKTMPL_OPTIONS=
# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
content_files = \
../../COPYING.LIB \
version.xml \
$(NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment