mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-14 05:34:56 -04:00
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>
This commit is contained in:
parent
b5fca036cc
commit
8cf9a367c9
4 changed files with 134 additions and 35 deletions
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
.SUFFIXES = .gv .png
|
||||
.SUFFIXES = .gv .png .map
|
||||
|
||||
noinst_DATA = xml/Client/index.xml xml/Server/index.xml
|
||||
dist_noinst_DATA = wayland.doxygen.in
|
||||
|
|
@ -27,6 +27,7 @@ scanned_src_files_man = \
|
|||
diagramsdir := dot
|
||||
diagramssrc := $(wildcard $(diagramsdir)/*.gv)
|
||||
diagrams := $(patsubst $(diagramsdir)/%,xml/%,$(diagramssrc:.gv=.png))
|
||||
diagram_maps := $(patsubst $(diagramsdir)/%,xml/%,$(diagramssrc:.gv=.map))
|
||||
|
||||
# find all man/man3/wl_foo.3 pages
|
||||
# for this to work, we need to create them before the man target (hence
|
||||
|
|
@ -38,7 +39,9 @@ alldirs := xml xml/Client xml/Server man/man3
|
|||
|
||||
$(diagrams): $(diagramssrc)
|
||||
|
||||
xml/%/index.xml: $(scanned_src_files_%) wayland.doxygen $(diagrams) | xml/%
|
||||
$(diagram_maps): $(diagramssrc)
|
||||
|
||||
xml/%/index.xml: $(scanned_src_files_%) wayland.doxygen $(diagrams) $(diagram_maps) | xml/%
|
||||
$(AM_V_GEN)(cat wayland.doxygen; \
|
||||
echo "GENERATE_XML=YES"; \
|
||||
echo "XML_OUTPUT=xml/$*"; \
|
||||
|
|
@ -56,6 +59,9 @@ man/man3/wl_display.3: $(scanned_src_files_man) wayland.doxygen | man/man3
|
|||
xml/%.png: $(diagramsdir)/%.gv | xml
|
||||
$(AM_V_GEN)$(DOT) -Tpng -o$@ $<
|
||||
|
||||
xml/%.map: $(diagramsdir)/%.gv | xml
|
||||
$(AM_V_GEN)$(DOT) -Tcmapx_np -o$@ $<
|
||||
|
||||
# general rule to create one of the listed directories.
|
||||
$(alldirs):
|
||||
$(AM_V_GEN)$(MKDIR_P) $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue