summaryrefslogtreecommitdiffstats
path: root/doc/doxygen/Makefile.am
diff options
context:
space:
mode:
authorJon Cruz <jonc@osg.samsung.com>2015-01-28 17:24:04 -0800
committerBryce Harrington <bryce@osg.samsung.com>2015-01-28 17:43:16 -0800
commitb5fca036cc2bfc224a3db4724c00543d98008cb5 (patch)
tree2c9d168746b41b059733a4a77cb1e33e0391e981 /doc/doxygen/Makefile.am
parentdisplay-test: disable leak check in tests that use pthread (diff)
downloadwayland-b5fca036cc2bfc224a3db4724c00543d98008cb5.tar
wayland-b5fca036cc2bfc224a3db4724c00543d98008cb5.tar.gz
wayland-b5fca036cc2bfc224a3db4724c00543d98008cb5.tar.bz2
wayland-b5fca036cc2bfc224a3db4724c00543d98008cb5.tar.lz
wayland-b5fca036cc2bfc224a3db4724c00543d98008cb5.tar.xz
wayland-b5fca036cc2bfc224a3db4724c00543d98008cb5.tar.zst
wayland-b5fca036cc2bfc224a3db4724c00543d98008cb5.zip
doc: Switch from static image files to generated diagrams.
Switches diagrams from using static PNG images to instead generate them via simple graphviz DOT markup files. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Diffstat (limited to 'doc/doxygen/Makefile.am')
-rw-r--r--doc/doxygen/Makefile.am15
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am
index 8c4618a..ea206b9 100644
--- a/doc/doxygen/Makefile.am
+++ b/doc/doxygen/Makefile.am
@@ -1,4 +1,6 @@
+.SUFFIXES = .gv .png
+
noinst_DATA = xml/Client/index.xml xml/Server/index.xml
dist_noinst_DATA = wayland.doxygen.in
@@ -22,15 +24,21 @@ scanned_src_files_man = \
$(top_srcdir)/src/wayland-client.c \
$(top_srcdir)/src/wayland-client.h
+diagramsdir := dot
+diagramssrc := $(wildcard $(diagramsdir)/*.gv)
+diagrams := $(patsubst $(diagramsdir)/%,xml/%,$(diagramssrc:.gv=.png))
+
# find all man/man3/wl_foo.3 pages
# for this to work, we need to create them before the man target (hence
# all-local below)
dist_man3_MANS = $(shell test -d man && find man/man3 -name "wl_*.3" -printf "man/man3/%P\n")
# Listing various directories that might need to be created.
-alldirs := xml/Client xml/Server man/man3
+alldirs := xml xml/Client xml/Server man/man3
-xml/%/index.xml: $(scanned_src_files_%) wayland.doxygen | xml/%
+$(diagrams): $(diagramssrc)
+
+xml/%/index.xml: $(scanned_src_files_%) wayland.doxygen $(diagrams) | xml/%
$(AM_V_GEN)(cat wayland.doxygen; \
echo "GENERATE_XML=YES"; \
echo "XML_OUTPUT=xml/$*"; \
@@ -45,6 +53,9 @@ man/man3/wl_display.3: $(scanned_src_files_man) wayland.doxygen | man/man3
echo "INPUT= $(scanned_src_files_man)"; \
) | $(DOXYGEN) -
+xml/%.png: $(diagramsdir)/%.gv | xml
+ $(AM_V_GEN)$(DOT) -Tpng -o$@ $<
+
# general rule to create one of the listed directories.
$(alldirs):
$(AM_V_GEN)$(MKDIR_P) $@