509d1d802a
This requires that doxygen is run before the man target so find can actually find the man pages. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
|
|
noinst_DATA = xml/client/index.xml xml/server/index.xml
|
|
dist_noinst_DATA = wayland.doxygen.in
|
|
|
|
scanned_src_files_client = \
|
|
$(top_srcdir)/src/wayland-client.c \
|
|
$(top_srcdir)/src/wayland-client.h
|
|
|
|
scanned_src_files_server = \
|
|
$(top_srcdir)/src/wayland-server.c \
|
|
$(top_srcdir)/src/wayland-server.h
|
|
|
|
# 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 find man/man3/ -name "wl_*.3" -printf "man/man3/%P\n")
|
|
|
|
xml/client/index.xml: $(scanned_src_files_client) wayland.doxygen
|
|
$(AM_V_GEN)$(MKDIR_P) xml/client
|
|
(cat wayland.doxygen; \
|
|
echo "GENERATE_XML=YES"; \
|
|
echo "XML_OUTPUT=xml/client"; \
|
|
echo "INPUT= $(scanned_src_files_client)"; \
|
|
) | doxygen -
|
|
xml/server/index.xml: $(scanned_src_files_server) wayland.doxygen
|
|
$(AM_V_GEN)$(MKDIR_P) xml/server
|
|
(cat wayland.doxygen; \
|
|
echo "GENERATE_XML=YES"; \
|
|
echo "XML_OUTPUT=xml/server"; \
|
|
echo "INPUT= $(scanned_src_files_server)"; \
|
|
) | doxygen -
|
|
|
|
doxygen.man: $(scanned_src_files_client) $(scanned_src_files_server)
|
|
(cat wayland.doxygen; \
|
|
echo "GENERATE_MAN=YES"; \
|
|
echo "MAN_OUTPUT=man"; \
|
|
echo "JAVADOC_AUTOBRIEF=NO"; \
|
|
echo "INPUT= $^"; \
|
|
) | doxygen -
|
|
|
|
# there is no man-local
|
|
all-local: doxygen.man
|
|
|
|
clean-local:
|
|
rm -rf xml/
|
|
rm -rf man/
|