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:
Aleksander Morgado
2013-05-23 13:10:58 +02:00
parent 5c8f1fe0f2
commit 3ed1cb2e1d
9 changed files with 17 additions and 26 deletions

View File

@@ -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")
case $with_docs in
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
;;
*)

View File

@@ -57,6 +57,13 @@ logos = \
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
dist_polkit_policy_in_files = org.freedesktop.ModemManager1.policy.in
if WITH_POLKIT
@@ -90,4 +97,5 @@ EXTRA_DIST = \
$(dbusservice_file_nopolkit) \
$(icon_DATA) \
$(dist_polkit_policy_in_files) \
$(logos)
$(logos) \
$(diagrams)

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -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_PNG = \
$(top_srcdir)/data/ModemManager-logo-square.png \
$(top_srcdir)/data/ModemManager-logo-wide.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.
DOC_MODULE = ModemManager
@@ -122,8 +114,7 @@ CLEANFILES += \
$(NULL)
# PNGs are removed only in dist-clean
# Diagrams are generated by dia in the current directory
# Logos are copied to current directory by gtk-doc
# Diagrams and logos are generated by dia in the current directory
DISTCLEANFILES = \
$(DIAGRAMS_PNG) \
$(notdir $(DIAGRAMS_PNG)) \
$(notdir $(LOGOS_PNG))