docs: don't require 'dia' to build the docs
These diagrams are not expected to change much, so just include the generated PNGs in the repository, and remove 'dia' from the prerequisites to build the documentation.
This commit is contained in:
@@ -29,14 +29,6 @@ AC_ARG_WITH(docs, AS_HELP_STRING([--with-docs], [Build ModemManager documentatio
|
|||||||
AM_CONDITIONAL(WITH_DOCS, test "x$with_docs" = "xyes")
|
AM_CONDITIONAL(WITH_DOCS, test "x$with_docs" = "xyes")
|
||||||
case $with_docs in
|
case $with_docs in
|
||||||
yes)
|
yes)
|
||||||
# Check for dia if we are building gtk_doc
|
|
||||||
AC_PATH_PROG(DIA, dia)
|
|
||||||
AC_SUBST(DIA)
|
|
||||||
|
|
||||||
if test -z "$DIA"; then
|
|
||||||
AC_MSG_ERROR([Could not find Dia tool required to build documentation.])
|
|
||||||
fi
|
|
||||||
|
|
||||||
enable_gtk_doc=yes
|
enable_gtk_doc=yes
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@@ -57,6 +57,13 @@ logos = \
|
|||||||
ModemManager-logo-wide-text.svg ModemManager-logo-wide-text.png
|
ModemManager-logo-wide-text.svg ModemManager-logo-wide-text.png
|
||||||
|
|
||||||
|
|
||||||
|
# Diagrams
|
||||||
|
diagrams = \
|
||||||
|
ModemManager-states.png \
|
||||||
|
ModemManager-interface-initialization-sequence.png \
|
||||||
|
ModemManager-interface-initialization-sequence-subclassed.png
|
||||||
|
|
||||||
|
|
||||||
# Polkit
|
# Polkit
|
||||||
dist_polkit_policy_in_files = org.freedesktop.ModemManager1.policy.in
|
dist_polkit_policy_in_files = org.freedesktop.ModemManager1.policy.in
|
||||||
if WITH_POLKIT
|
if WITH_POLKIT
|
||||||
@@ -90,4 +97,5 @@ EXTRA_DIST = \
|
|||||||
$(dbusservice_file_nopolkit) \
|
$(dbusservice_file_nopolkit) \
|
||||||
$(icon_DATA) \
|
$(icon_DATA) \
|
||||||
$(dist_polkit_policy_in_files) \
|
$(dist_polkit_policy_in_files) \
|
||||||
$(logos)
|
$(logos) \
|
||||||
|
$(diagrams)
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
data/ModemManager-interface-initialization-sequence.png
Normal file
BIN
data/ModemManager-interface-initialization-sequence.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
data/ModemManager-states.png
Normal file
BIN
data/ModemManager-states.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
@@ -1,24 +1,16 @@
|
|||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Logos
|
# Logos
|
||||||
LOGOS_PNG = \
|
LOGOS_PNG = \
|
||||||
$(top_srcdir)/data/ModemManager-logo-square.png \
|
$(top_srcdir)/data/ModemManager-logo-square.png \
|
||||||
$(top_srcdir)/data/ModemManager-logo-wide.png \
|
$(top_srcdir)/data/ModemManager-logo-wide.png \
|
||||||
$(top_srcdir)/data/ModemManager-logo-wide-text.png
|
$(top_srcdir)/data/ModemManager-logo-wide-text.png
|
||||||
|
|
||||||
|
# Diagrams
|
||||||
|
DIAGRAMS_PNG = \
|
||||||
|
$(top_srcdir)/data/ModemManager-states.png \
|
||||||
|
$(top_srcdir)/data/ModemManager-interface-initialization-sequence.png \
|
||||||
|
$(top_srcdir)/data/ModemManager-interface-initialization-sequence-subclassed.png
|
||||||
|
|
||||||
# The name of the module.
|
# The name of the module.
|
||||||
DOC_MODULE = ModemManager
|
DOC_MODULE = ModemManager
|
||||||
|
|
||||||
@@ -122,8 +114,7 @@ CLEANFILES += \
|
|||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
# PNGs are removed only in dist-clean
|
# PNGs are removed only in dist-clean
|
||||||
# Diagrams are generated by dia in the current directory
|
# Diagrams and logos are generated by dia in the current directory
|
||||||
# Logos are copied to current directory by gtk-doc
|
|
||||||
DISTCLEANFILES = \
|
DISTCLEANFILES = \
|
||||||
$(DIAGRAMS_PNG) \
|
$(notdir $(DIAGRAMS_PNG)) \
|
||||||
$(notdir $(LOGOS_PNG))
|
$(notdir $(LOGOS_PNG))
|
||||||
|
Reference in New Issue
Block a user