
It's pointless to have libmm-common around, just merge it into libmm-glib and make ModemManager depend on libmm-glib directly. At the end, the non-common stuff in libmm-glib is really minimal.
120 lines
3.5 KiB
Makefile
120 lines
3.5 KiB
Makefile
|
|
# Generation of the additional PNG files from DIA files
|
|
# (list of original '.dia' files with '.png' extension)
|
|
DIAGRAMS = \
|
|
ModemManager-states.dia \
|
|
ModemManager-interface-initialization-sequence.dia \
|
|
ModemManager-interface-initialization-sequence-subclassed.dia
|
|
|
|
# The wanted PNG files
|
|
DIAGRAMS_PNG = $(notdir $(DIAGRAMS:.dia=.png))
|
|
|
|
# DIA to PNG conversion
|
|
$(DIAGRAMS_PNG): $(DIAGRAMS)
|
|
$(AM_V_GEN) $(DIA) -t png $^ 1>/dev/null 2>&1
|
|
|
|
# The name of the module.
|
|
DOC_MODULE = ModemManager
|
|
|
|
# The top-level SGML file.
|
|
DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
|
|
|
|
# Extra options to supply to gtkdoc-scan
|
|
SCAN_OPTIONS =
|
|
|
|
# The directory containing the source code.
|
|
DOC_SOURCE_DIR = $(top_srcdir)/include
|
|
|
|
HFILE_GLOB =
|
|
CFILE_GLOB =
|
|
|
|
# Headers to ignore
|
|
IGNORE_HFILES = \
|
|
ModemManager.h \
|
|
ModemManager-names.h \
|
|
$(NULL)
|
|
|
|
# CFLAGS and LDFLAGS for compiling scan program. Only needed
|
|
# if $(DOC_MODULE).types is non-empty.
|
|
INCLUDES = \
|
|
-I$(srcdir) \
|
|
-I$(top_srcdir) \
|
|
-I$(top_builddir) \
|
|
$(MM_CFLAGS) \
|
|
$(NULL)
|
|
|
|
GTKDOC_LIBS = \
|
|
$(MM_LIBS) \
|
|
$(NULL)
|
|
|
|
# Extra options to supply to gtkdoc-mkdb
|
|
MKDB_OPTIONS = --output-format=xml --sgml-mode --name-space=mm
|
|
|
|
# Images to copy into HTML directory
|
|
HTML_IMAGES = \
|
|
$(DIAGRAMS_PNG) \
|
|
$(NULL)
|
|
|
|
# Note that PNG files are also added in content_files so that
|
|
# the documentation is not built before the PNGs.
|
|
content_files = \
|
|
$(HTML_IMAGES) \
|
|
$(NULL)
|
|
|
|
expand_content_files = \
|
|
ModemManager-overview.xml \
|
|
ModemManager-dbus-reference.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Sim.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Sms.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Bearer.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Messaging.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Location.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Time.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Firmware.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Contacts.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.ModemCdma.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Modem3gpp.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd.xml \
|
|
$(top_builddir)/libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Simple.xml \
|
|
$(NULL)
|
|
|
|
extra_files = \
|
|
$(NULL)
|
|
|
|
if ENABLE_GTK_DOC
|
|
include $(top_srcdir)/gtk-doc.make
|
|
else
|
|
EXTRA_DIST =
|
|
CLEANFILES =
|
|
endif
|
|
|
|
EXTRA_DIST += \
|
|
ModemManager-overview.xml \
|
|
ModemManager-dbus-reference.xml \
|
|
version.xml.in \
|
|
$(DIAGRAMS) \
|
|
$(NULL)
|
|
|
|
CLEANFILES += \
|
|
$(DOC_MODULE)-decl-list.txt \
|
|
$(DOC_MODULE)-decl.txt \
|
|
$(DOC_MODULE)-overrides.txt \
|
|
$(DOC_MODULE)-undeclared.txt \
|
|
$(DOC_MODULE)-undocumented.txt \
|
|
$(DOC_MODULE)-overrides.txt \
|
|
$(DOC_MODULE)-unused.txt \
|
|
$(DOC_MODULE).args \
|
|
$(DOC_MODULE).hierarchy \
|
|
$(DOC_MODULE).interfaces \
|
|
$(DOC_MODULE).prerequisites \
|
|
$(DOC_MODULE).signals \
|
|
*.stamp \
|
|
-rf xml html tmpl \
|
|
$(NULL)
|
|
|
|
# PNGs generated are removed only in maintainer-clean
|
|
MAINTAINERCLEANFILES = \
|
|
$(DIAGRAMS_PNG)
|