mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
doc: Minor makefile cleanup.
Split out directory creation to leverage order only prerequisites. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
dec30252b0
commit
163ce87cd7
1 changed files with 13 additions and 7 deletions
|
|
@ -22,22 +22,24 @@ scanned_src_files_server = \
|
||||||
# all-local below)
|
# all-local below)
|
||||||
dist_man3_MANS = $(shell test -d man && find man/man3 -name "wl_*.3" -printf "man/man3/%P\n")
|
dist_man3_MANS = $(shell test -d man && find man/man3 -name "wl_*.3" -printf "man/man3/%P\n")
|
||||||
|
|
||||||
xml/client/index.xml: $(scanned_src_files_client) wayland.doxygen
|
# Listing various directories that might need to be created.
|
||||||
$(AM_V_GEN)$(MKDIR_P) xml/client && \
|
alldirs := xml/client xml/server man/man3
|
||||||
(cat wayland.doxygen; \
|
|
||||||
|
xml/client/index.xml: $(scanned_src_files_client) wayland.doxygen | xml/client
|
||||||
|
$(AM_V_GEN)(cat wayland.doxygen; \
|
||||||
echo "GENERATE_XML=YES"; \
|
echo "GENERATE_XML=YES"; \
|
||||||
echo "XML_OUTPUT=xml/client"; \
|
echo "XML_OUTPUT=xml/client"; \
|
||||||
echo "INPUT= $(scanned_src_files_client)"; \
|
echo "INPUT= $(scanned_src_files_client)"; \
|
||||||
) | $(DOXYGEN) -
|
) | $(DOXYGEN) -
|
||||||
xml/server/index.xml: $(scanned_src_files_server) wayland.doxygen
|
|
||||||
$(AM_V_GEN)$(MKDIR_P) xml/server && \
|
xml/server/index.xml: $(scanned_src_files_server) wayland.doxygen | xml/server
|
||||||
(cat wayland.doxygen; \
|
$(AM_V_GEN)(cat wayland.doxygen; \
|
||||||
echo "GENERATE_XML=YES"; \
|
echo "GENERATE_XML=YES"; \
|
||||||
echo "XML_OUTPUT=xml/server"; \
|
echo "XML_OUTPUT=xml/server"; \
|
||||||
echo "INPUT= $(scanned_src_files_server)"; \
|
echo "INPUT= $(scanned_src_files_server)"; \
|
||||||
) | $(DOXYGEN) -
|
) | $(DOXYGEN) -
|
||||||
|
|
||||||
man/man3/wl_display.3: $(scanned_src_files_client) $(scanned_src_files_server)
|
man/man3/wl_display.3: $(scanned_src_files_client) $(scanned_src_files_server) wayland.doxygen | man/man3
|
||||||
$(AM_V_GEN)(cat wayland.doxygen; \
|
$(AM_V_GEN)(cat wayland.doxygen; \
|
||||||
echo "GENERATE_MAN=YES"; \
|
echo "GENERATE_MAN=YES"; \
|
||||||
echo "MAN_OUTPUT=man"; \
|
echo "MAN_OUTPUT=man"; \
|
||||||
|
|
@ -45,6 +47,10 @@ man/man3/wl_display.3: $(scanned_src_files_client) $(scanned_src_files_server)
|
||||||
echo "INPUT= $^"; \
|
echo "INPUT= $^"; \
|
||||||
) | $(DOXYGEN) -
|
) | $(DOXYGEN) -
|
||||||
|
|
||||||
|
# general rule to create one of the listed directories.
|
||||||
|
$(alldirs):
|
||||||
|
$(AM_V_GEN)$(MKDIR_P) $@
|
||||||
|
|
||||||
# there is no man-local
|
# there is no man-local
|
||||||
all-local: man/man3/wl_display.3
|
all-local: man/man3/wl_display.3
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue