diff options
| author | Jon Cruz <jonc@osg.samsung.com> | 2015-01-28 17:24:05 -0800 |
|---|---|---|
| committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-01-28 17:43:18 -0800 |
| commit | 8cf9a367c98756d4bdacc987573e23f13faf28e6 (patch) | |
| tree | 3db4f91d803e214e6d9eb2a45cc8cd7148d40c79 /doc/publican/Makefile.am | |
| parent | doc: Switch from static image files to generated diagrams. (diff) | |
| download | wayland-8cf9a367c98756d4bdacc987573e23f13faf28e6.tar wayland-8cf9a367c98756d4bdacc987573e23f13faf28e6.tar.gz wayland-8cf9a367c98756d4bdacc987573e23f13faf28e6.tar.bz2 wayland-8cf9a367c98756d4bdacc987573e23f13faf28e6.tar.lz wayland-8cf9a367c98756d4bdacc987573e23f13faf28e6.tar.xz wayland-8cf9a367c98756d4bdacc987573e23f13faf28e6.tar.zst wayland-8cf9a367c98756d4bdacc987573e23f13faf28e6.zip | |
doc: Create hot-linked areas in documents.
Added xslt processing to give DocBook output diagram image maps/hot-linked
areas consistent with those automatically generated by Doxygen.
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Diffstat (limited to 'doc/publican/Makefile.am')
| -rw-r--r-- | doc/publican/Makefile.am | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/doc/publican/Makefile.am b/doc/publican/Makefile.am index a4d6d58..7e4fc48 100644 --- a/doc/publican/Makefile.am +++ b/doc/publican/Makefile.am @@ -23,13 +23,15 @@ publican_sources = \ $(srcdir)/sources/Foreword.xml \ $(srcdir)/sources/Preface.xml \ $(srcdir)/sources/Revision_History.xml \ - $(srcdir)/sources/Introduction.xml \ - $(srcdir)/sources/Architecture.xml \ $(srcdir)/sources/Protocol.xml \ $(srcdir)/sources/Compositors.xml \ $(srcdir)/sources/images/icon.svg \ $(srcdir)/sources/images/wayland.png +processed_sources := \ + $(srcdir)/sources/Architecture.xml \ + $(srcdir)/sources/Introduction.xml + css_sources = \ $(srcdir)/sources/css/brand.css \ $(srcdir)/sources/css/common.css \ @@ -45,6 +47,10 @@ doxygen_img_sources := \ $(doxydir)/xml/wayland-architecture.png \ $(doxydir)/xml/x-architecture.png +map_sources := \ + $(doxydir)/xml/x-architecture.map \ + $(doxydir)/xml/wayland-architecture.map + if HAVE_XMLTO if HAVE_XSLTPROC noinst_DATA = $(builddir)/Wayland $(publican_targets) @@ -61,8 +67,10 @@ alldirs := $(builddir)/en-US $(builddir)/en-US/images $(html_destdir) $(html_des html_css_targets = $(addprefix $(html_destdir)/css/,$(notdir $(css_sources))) html_img_targets = $(addprefix $(html_destdir)/images/,$(notdir $(img_sources))) doxygen_img_targets := $(doxygen_img_sources:$(doxydir)/xml/%=$(html_destdir)/images/%) +map_targets := $(map_sources:$(doxydir)/xml/%=$(builddir)/en-US/images/%) +processed_targets := $(processed_sources:$(srcdir)/sources/%=$(builddir)/en-US/%) -$(builddir)/Wayland: $(publican_targets) $(html_css_targets) $(html_img_targets) $(doxygen_img_targets) | $(builddir)/en-US +$(builddir)/Wayland: $(publican_targets) $(html_css_targets) $(html_img_targets) $(processed_targets) $(doxygen_img_targets) | $(builddir)/en-US $(AM_V_GEN)$(XMLTO) $(XMLTO_PARAM) html $(builddir)/en-US/Wayland.xml -o $(html_destdir) @touch $@ @@ -111,6 +119,13 @@ $(builddir)/en-US/images/%: $(doxydir)/xml/% | $(builddir)/en-US/images $(AM_V_GEN)cp -f $< $@ $(AM_V_at)chmod a+w $@ +# More specific rule to override explicitly listed targets and perform xslt +# modifications on them. +# Note that we can't use $< as all targets must be there +$(processed_targets): $(processed_sources) $(map_targets) $(srcdir)/merge-mapcoords.xsl | $(builddir)/en-US/images + $(AM_V_GEN)$(XSLTPROC) --stringparam basedir $(builddir)/en-US \ + $(srcdir)/merge-mapcoords.xsl $(addprefix $(srcdir)/sources/,$(notdir $@)) > $@ + # general rule to create one of the listed directories. $(alldirs): $(AM_V_GEN)$(MKDIR_P) $@ |
