mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	The shell command for dist_man3_MANS gets invoked several times during
the make process but before the man pages have been generated, which
causes the following warnings when running `make`:
    find: `man/man3': No such file or directory
    find: `man/man3': No such file or directory
    find: `man/man3': No such file or directory
      GEN    xml/client/index.xml
Despite these error messages, the generated dist tarball contains the
man3 pages as intended, both before and after this patch.
    $ make dist
    $ tar xxf wayland-1.5.90.tar.xz
    $ find wayland-1.5.90/doc/doxygen/man/man3 -name "wl_*.3" | wc -l
    85
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
		
	
			
		
			
				
	
	
		
			53 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
 | 
						|
noinst_DATA = xml/client/index.xml xml/server/index.xml
 | 
						|
dist_noinst_DATA = wayland.doxygen.in
 | 
						|
 | 
						|
scanned_src_files_shared = 				\
 | 
						|
	$(top_srcdir)/src/wayland-util.c	\
 | 
						|
	$(top_srcdir)/src/wayland-util.h
 | 
						|
 | 
						|
scanned_src_files_client = 				\
 | 
						|
	$(scanned_src_files_shared)			\
 | 
						|
	$(top_srcdir)/src/wayland-client.c	\
 | 
						|
	$(top_srcdir)/src/wayland-client.h
 | 
						|
 | 
						|
scanned_src_files_server = 				\
 | 
						|
	$(scanned_src_files_shared)			\
 | 
						|
	$(top_srcdir)/src/wayland-server.c	\
 | 
						|
	$(top_srcdir)/src/wayland-server.h	\
 | 
						|
	$(top_srcdir)/src/wayland-shm.c
 | 
						|
 | 
						|
# 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 test -d man && 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 -
 | 
						|
 | 
						|
man/man3/wl_display.3: $(scanned_src_files_client) $(scanned_src_files_server)
 | 
						|
	$(AM_V_GEN)(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: man/man3/wl_display.3
 | 
						|
 | 
						|
clean-local:
 | 
						|
	rm -rf xml/
 | 
						|
	rm -rf man/
 |