2012-10-11 17:42:09 +03:00
|
|
|
|
2015-01-28 17:24:05 -08:00
|
|
|
.SUFFIXES = .gv .png .map
|
2015-01-28 17:24:04 -08:00
|
|
|
|
2016-03-01 09:26:21 +10:00
|
|
|
noinst_DATA = \
|
|
|
|
|
xml/Client/index.xml \
|
|
|
|
|
xml/Server/index.xml \
|
|
|
|
|
html/Client/index.html \
|
|
|
|
|
html/Server/index.html
|
2012-10-11 17:42:09 +03:00
|
|
|
dist_noinst_DATA = wayland.doxygen.in
|
|
|
|
|
|
2013-09-15 13:37:09 -05:00
|
|
|
scanned_src_files_shared = \
|
|
|
|
|
$(top_srcdir)/src/wayland-util.h
|
|
|
|
|
|
2014-12-16 19:23:03 -08:00
|
|
|
scanned_src_files_Client = \
|
2013-09-15 13:37:09 -05:00
|
|
|
$(scanned_src_files_shared) \
|
2012-10-19 15:30:26 +03:00
|
|
|
$(top_srcdir)/src/wayland-client.c \
|
2015-04-29 16:34:47 +03:00
|
|
|
$(top_srcdir)/src/wayland-client.h \
|
|
|
|
|
$(top_srcdir)/src/wayland-client-core.h
|
2012-10-19 15:30:26 +03:00
|
|
|
|
2014-12-16 19:23:03 -08:00
|
|
|
scanned_src_files_Server = \
|
2013-09-15 13:37:09 -05:00
|
|
|
$(scanned_src_files_shared) \
|
2017-03-03 17:50:22 +02:00
|
|
|
$(top_srcdir)/src/event-loop.c \
|
2013-04-02 11:08:59 +10:00
|
|
|
$(top_srcdir)/src/wayland-server.c \
|
2013-11-14 12:28:51 +00:00
|
|
|
$(top_srcdir)/src/wayland-server.h \
|
2015-04-29 16:34:47 +03:00
|
|
|
$(top_srcdir)/src/wayland-server-core.h \
|
2013-11-14 12:28:51 +00:00
|
|
|
$(top_srcdir)/src/wayland-shm.c
|
2013-04-02 11:08:59 +10:00
|
|
|
|
2014-12-09 17:01:11 -08:00
|
|
|
scanned_src_files_man = \
|
2014-12-16 19:23:03 -08:00
|
|
|
$(scanned_src_files_Server) \
|
2014-12-09 17:01:11 -08:00
|
|
|
$(top_srcdir)/src/wayland-client.c \
|
2015-04-29 16:34:47 +03:00
|
|
|
$(top_srcdir)/src/wayland-client.h \
|
|
|
|
|
$(top_srcdir)/src/wayland-client-core.h
|
2014-12-09 17:01:11 -08:00
|
|
|
|
2016-03-01 09:26:21 +10:00
|
|
|
extra_doxygen = \
|
|
|
|
|
mainpage.dox
|
|
|
|
|
|
|
|
|
|
extra_doxygen_Server = \
|
|
|
|
|
$(top_builddir)/protocol/wayland-server-protocol.h \
|
|
|
|
|
$(extra_doxygen)
|
|
|
|
|
|
|
|
|
|
extra_doxygen_Client = \
|
|
|
|
|
$(top_builddir)/protocol/wayland-client-protocol.h \
|
|
|
|
|
$(extra_doxygen)
|
|
|
|
|
|
2015-01-30 18:07:24 -08:00
|
|
|
diagramsdir := $(srcdir)/dot
|
2015-01-28 17:24:04 -08:00
|
|
|
diagramssrc := $(wildcard $(diagramsdir)/*.gv)
|
|
|
|
|
diagrams := $(patsubst $(diagramsdir)/%,xml/%,$(diagramssrc:.gv=.png))
|
2015-01-28 17:24:05 -08:00
|
|
|
diagram_maps := $(patsubst $(diagramsdir)/%,xml/%,$(diagramssrc:.gv=.map))
|
2015-01-28 17:24:04 -08:00
|
|
|
|
2013-04-04 11:29:01 +10:00
|
|
|
# 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)
|
2014-07-21 19:23:49 +00:00
|
|
|
dist_man3_MANS = $(shell test -d man && find man/man3 -name "wl_*.3" -printf "man/man3/%P\n")
|
2013-04-02 11:08:59 +10:00
|
|
|
|
2014-12-09 01:34:23 -08:00
|
|
|
# Listing various directories that might need to be created.
|
build/doc: Ensure destination dir exists despite VPATH
Make considers a variable called VPATH when trying to satisfy
dependencies, e.g. for a target 'foo', it will consider the target
extant if VPATH is '../../bar' and '../../bar/foo' exists.
Part of the doc build, the '$(alldirs)' target, exists to create the
target directories if they do not exist. For example, before generating
xml/wayland-architecture.png, it will ensure the 'xml' target is
considered up-to-date thanks to the target dependency.
Creating $(srcdir)/doc/doxygen/xml thus means that the 'xml' dependency
will be satisfied, so we'll never create the output directory, and the
doc build will fail.
Change the alldirs target list to be absolute paths, so VPATH will not
be consulted and defeat the entire point of what we're trying to do.
This fixes the Meson build, where we later create
doc/doxygen/xml/meson.build.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2018-07-22 10:00:26 +01:00
|
|
|
alldirsrel := xml xml/Client xml/Server man/man3 html/Client html/Server
|
|
|
|
|
alldirs := $(patsubst %,$(CURDIR)/%,$(alldirsrel))
|
2014-12-09 01:34:23 -08:00
|
|
|
|
2015-01-28 17:24:04 -08:00
|
|
|
$(diagrams): $(diagramssrc)
|
|
|
|
|
|
2015-01-28 17:24:05 -08:00
|
|
|
$(diagram_maps): $(diagramssrc)
|
|
|
|
|
|
build/doc: Ensure destination dir exists despite VPATH
Make considers a variable called VPATH when trying to satisfy
dependencies, e.g. for a target 'foo', it will consider the target
extant if VPATH is '../../bar' and '../../bar/foo' exists.
Part of the doc build, the '$(alldirs)' target, exists to create the
target directories if they do not exist. For example, before generating
xml/wayland-architecture.png, it will ensure the 'xml' target is
considered up-to-date thanks to the target dependency.
Creating $(srcdir)/doc/doxygen/xml thus means that the 'xml' dependency
will be satisfied, so we'll never create the output directory, and the
doc build will fail.
Change the alldirs target list to be absolute paths, so VPATH will not
be consulted and defeat the entire point of what we're trying to do.
This fixes the Meson build, where we later create
doc/doxygen/xml/meson.build.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2018-07-22 10:00:26 +01:00
|
|
|
xml/%/index.xml: $(top_srcdir)/src/scanner.c $(scanned_src_files_%) wayland.doxygen $(diagrams) $(diagram_maps) | $(CURDIR)/xml/%
|
2014-12-09 01:34:23 -08:00
|
|
|
$(AM_V_GEN)(cat wayland.doxygen; \
|
2013-04-04 11:28:58 +10:00
|
|
|
echo "GENERATE_XML=YES"; \
|
2014-12-16 19:23:03 -08:00
|
|
|
echo "XML_OUTPUT=xml/$*"; \
|
|
|
|
|
echo "INPUT= $(scanned_src_files_$*)"; \
|
2014-12-02 17:54:07 -08:00
|
|
|
) | $(DOXYGEN) -
|
2012-10-11 17:42:09 +03:00
|
|
|
|
build/doc: Ensure destination dir exists despite VPATH
Make considers a variable called VPATH when trying to satisfy
dependencies, e.g. for a target 'foo', it will consider the target
extant if VPATH is '../../bar' and '../../bar/foo' exists.
Part of the doc build, the '$(alldirs)' target, exists to create the
target directories if they do not exist. For example, before generating
xml/wayland-architecture.png, it will ensure the 'xml' target is
considered up-to-date thanks to the target dependency.
Creating $(srcdir)/doc/doxygen/xml thus means that the 'xml' dependency
will be satisfied, so we'll never create the output directory, and the
doc build will fail.
Change the alldirs target list to be absolute paths, so VPATH will not
be consulted and defeat the entire point of what we're trying to do.
This fixes the Meson build, where we later create
doc/doxygen/xml/meson.build.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2018-07-22 10:00:26 +01:00
|
|
|
html/%/index.html: $(scanned_src_files_%) wayland.doxygen $(diagrams) $(diagram_maps) | $(CURDIR)/html/%
|
2016-03-01 09:26:21 +10:00
|
|
|
$(AM_V_GEN)(cat wayland.doxygen; \
|
2016-03-01 09:28:49 +10:00
|
|
|
echo "PROJECT_NAME=\"Wayland $* API\""; \
|
2016-03-01 09:26:21 +10:00
|
|
|
echo "GENERATE_HTML=YES"; \
|
|
|
|
|
echo "HTML_OUTPUT=html/$*"; \
|
|
|
|
|
echo "INPUT= $(scanned_src_files_$*) $(extra_doxygen_$*)"; \
|
|
|
|
|
) | $(DOXYGEN) -
|
|
|
|
|
|
build/doc: Ensure destination dir exists despite VPATH
Make considers a variable called VPATH when trying to satisfy
dependencies, e.g. for a target 'foo', it will consider the target
extant if VPATH is '../../bar' and '../../bar/foo' exists.
Part of the doc build, the '$(alldirs)' target, exists to create the
target directories if they do not exist. For example, before generating
xml/wayland-architecture.png, it will ensure the 'xml' target is
considered up-to-date thanks to the target dependency.
Creating $(srcdir)/doc/doxygen/xml thus means that the 'xml' dependency
will be satisfied, so we'll never create the output directory, and the
doc build will fail.
Change the alldirs target list to be absolute paths, so VPATH will not
be consulted and defeat the entire point of what we're trying to do.
This fixes the Meson build, where we later create
doc/doxygen/xml/meson.build.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2018-07-22 10:00:26 +01:00
|
|
|
man/man3/wl_display.3: $(top_srcdir)/src/scanner.c $(scanned_src_files_man) wayland.doxygen | $(CURDIR)/man/man3
|
2014-03-10 14:03:59 +02:00
|
|
|
$(AM_V_GEN)(cat wayland.doxygen; \
|
2013-04-02 11:08:59 +10:00
|
|
|
echo "GENERATE_MAN=YES"; \
|
|
|
|
|
echo "MAN_OUTPUT=man"; \
|
|
|
|
|
echo "JAVADOC_AUTOBRIEF=NO"; \
|
2014-12-09 17:01:11 -08:00
|
|
|
echo "INPUT= $(scanned_src_files_man)"; \
|
2014-12-02 17:54:07 -08:00
|
|
|
) | $(DOXYGEN) -
|
2013-04-02 11:08:59 +10:00
|
|
|
|
build/doc: Ensure destination dir exists despite VPATH
Make considers a variable called VPATH when trying to satisfy
dependencies, e.g. for a target 'foo', it will consider the target
extant if VPATH is '../../bar' and '../../bar/foo' exists.
Part of the doc build, the '$(alldirs)' target, exists to create the
target directories if they do not exist. For example, before generating
xml/wayland-architecture.png, it will ensure the 'xml' target is
considered up-to-date thanks to the target dependency.
Creating $(srcdir)/doc/doxygen/xml thus means that the 'xml' dependency
will be satisfied, so we'll never create the output directory, and the
doc build will fail.
Change the alldirs target list to be absolute paths, so VPATH will not
be consulted and defeat the entire point of what we're trying to do.
This fixes the Meson build, where we later create
doc/doxygen/xml/meson.build.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2018-07-22 10:00:26 +01:00
|
|
|
xml/%.png: $(diagramsdir)/%.gv | $(CURDIR)/xml
|
2015-01-28 17:24:04 -08:00
|
|
|
$(AM_V_GEN)$(DOT) -Tpng -o$@ $<
|
|
|
|
|
|
build/doc: Ensure destination dir exists despite VPATH
Make considers a variable called VPATH when trying to satisfy
dependencies, e.g. for a target 'foo', it will consider the target
extant if VPATH is '../../bar' and '../../bar/foo' exists.
Part of the doc build, the '$(alldirs)' target, exists to create the
target directories if they do not exist. For example, before generating
xml/wayland-architecture.png, it will ensure the 'xml' target is
considered up-to-date thanks to the target dependency.
Creating $(srcdir)/doc/doxygen/xml thus means that the 'xml' dependency
will be satisfied, so we'll never create the output directory, and the
doc build will fail.
Change the alldirs target list to be absolute paths, so VPATH will not
be consulted and defeat the entire point of what we're trying to do.
This fixes the Meson build, where we later create
doc/doxygen/xml/meson.build.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2018-07-22 10:00:26 +01:00
|
|
|
xml/%.map: $(diagramsdir)/%.gv | $(CURDIR)/xml
|
2015-01-28 17:24:05 -08:00
|
|
|
$(AM_V_GEN)$(DOT) -Tcmapx_np -o$@ $<
|
|
|
|
|
|
2014-12-09 01:34:23 -08:00
|
|
|
# general rule to create one of the listed directories.
|
|
|
|
|
$(alldirs):
|
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $@
|
|
|
|
|
|
2013-04-04 11:29:01 +10:00
|
|
|
# there is no man-local
|
2014-03-10 14:03:58 +02:00
|
|
|
all-local: man/man3/wl_display.3
|
2013-04-02 11:08:59 +10:00
|
|
|
|
2012-10-11 17:42:09 +03:00
|
|
|
clean-local:
|
|
|
|
|
rm -rf xml/
|
2016-03-01 09:26:21 +10:00
|
|
|
rm -rf html/
|
2013-04-02 11:08:59 +10:00
|
|
|
rm -rf man/
|
2015-01-30 18:07:24 -08:00
|
|
|
|
|
|
|
|
EXTRA_DIST = $(diagramssrc)
|