2014-07-24 08:59:21 -04:00
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = 1.6
2018-09-09 21:41:40 +02:00
check_local =
2014-07-24 08:59:21 -04:00
# The name of the module
DOC_MODULE=libnm
# The top-level SGML file.
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
# documenting functions and macros.
2014-11-07 15:46:33 -05:00
DOC_SOURCE_DIR= \
$(top_srcdir)/libnm-core \
$(top_builddir)/libnm-core \
$(top_srcdir)/libnm \
$(top_builddir)/libnm
2014-07-24 08:59:21 -04:00
# Extra options to supply to gtkdoc-scan.
SCAN_OPTIONS=--rebuild-types --rebuild-sections
# Extra options to supply to gtkdoc-mkdb.
MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-fixref.
FIXXREF_OPTIONS=
# Used for dependencies.
HFILE_GLOB=$(top_srcdir)/libnm-core/*.h $(top_srcdir)/libnm/*.h
CFILE_GLOB=$(top_srcdir)/libnm-core/*.c $(top_srcdir)/libnm/*.c
# Header files to ignore when scanning.
IGNORE_HFILES= \
2014-11-07 12:38:17 -05:00
common.h \
2018-08-29 18:58:14 +02:00
nm-crypto.h \
2018-08-29 20:46:17 +02:00
nm-crypto-impl.h \
2014-11-07 12:38:17 -05:00
nm-dbus-helpers.h \
2014-07-27 20:35:17 +02:00
nm-core-internal.h \
2015-10-30 11:29:56 +01:00
nm-core-types-internal.h \
2014-07-24 08:59:21 -04:00
nm-device-private.h \
2014-10-22 13:48:18 -04:00
nm-dhcp4-config.h \
nm-dhcp6-config.h \
2016-10-25 11:11:12 +02:00
nm-dns-manager.h \
2014-10-22 13:48:18 -04:00
nm-ip4-config.h \
nm-ip6-config.h \
2014-09-29 10:58:16 -04:00
nm-manager.h \
2014-07-24 08:59:21 -04:00
nm-object-private.h \
2014-11-07 12:38:17 -05:00
nm-property-compare.h \
2014-07-24 08:59:21 -04:00
nm-remote-connection-private.h \
2014-09-29 10:58:16 -04:00
nm-remote-settings.h \
2014-07-24 08:59:21 -04:00
nm-setting-private.h \
2014-11-07 12:38:17 -05:00
nm-utils-private.h \
2016-01-20 11:08:57 -06:00
nm-core-tests-enum-types.h \
nm-keyfile-internal.h \
nm-keyfile-utils.h \
test-general-enums.h
2014-07-24 08:59:21 -04:00
# Images to copy into HTML directory.
HTML_IMAGES = libnm.png
# Extra XML files that are included by $(DOC_MAIN_SGML_FILE).
content_files = version.xml
# Other files to distribute.
extra_files = libnm.png
# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
2018-02-02 10:55:34 +01:00
GTKDOC_CFLAGS = \
-I$(top_srcdir)/libnm-core \
-I$(top_builddir)/libnm-core \
-I$(top_srcdir)/libnm \
-I$(top_builddir)/libnm \
2016-04-05 21:18:43 +02:00
-DNM_VERSION_MIN_REQUIRED=NM_VERSION_0_9_8 \
2018-02-07 11:10:31 +01:00
$(GLIB_CFLAGS) \
$(SANITIZER_EXEC_CFLAGS)
2014-07-24 08:59:21 -04:00
2018-02-02 10:55:34 +01:00
GTKDOC_LIBS = \
2014-07-24 08:59:21 -04:00
$(top_builddir)/libnm/libnm.la \
2018-02-07 11:10:31 +01:00
$(GLIB_LIBS) \
$(SANITIZER_EXEC_LDFLAGS)
2014-07-24 08:59:21 -04:00
# include common portion ...
include $(top_srcdir)/gtk-doc.make
2018-01-08 13:06:54 +01:00
EXTRA_DIST += version.xml.in meson.build
2014-07-24 08:59:21 -04:00
CLEANFILES += \
libnm-sections.txt \
libnm-overrides.txt \
html/* \
tmpl/* \
xml/*
2018-09-09 21:41:40 +02:00
if GTK_DOC_BUILD_HTML
check-local-gtk-doc-patch:
@if grep -q -F '<a href="libnm-nm-setting-user.html">nm-setting-user</a>' "$(top_builddir)/docs/libnm/html/index.html"; then \
echo "WARNING: The generated documentation has issues. Patch your gtk-doc (see https://gitlab.gnome.org/GNOME/gtk-doc/merge_requests/2). Let this check fail with NMTST_CHECK_GTK_DOC=1"; \
test "$$NMTST_CHECK_GTK_DOC" != 1; \
fi
check_local += check-local-gtk-doc-patch
endif
check-local: $(check_local)