[Mesa-dev] [PATCH] anv: automake: ensure that the destination directory is created

Emil Velikov emil.l.velikov at gmail.com
Thu Mar 23 18:34:28 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Some versions of autotools will not create the output directory for
generated sources. Do the safe thing and create it anywhere.

Cc: Dylan Baker <dylan at pnwbakers.com>
Cc: Steven Newbury <steve at snewbury.org.uk>
Reported-by: Steven Newbury <steve at snewbury.org.uk> Fixes:
Fixes: 1610b3dede1 ("anv: don't pass xmlfile via stdin anv_entrypoints_gen.py")
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/intel/Makefile.vulkan.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/Makefile.vulkan.am b/src/intel/Makefile.vulkan.am
index da1ee93d91c..ba6ab4fc93f 100644
--- a/src/intel/Makefile.vulkan.am
+++ b/src/intel/Makefile.vulkan.am
@@ -25,6 +25,7 @@
 vulkan_api_xml = $(top_srcdir)/src/vulkan/registry/vk.xml
 
 vulkan/anv_entrypoints.c: vulkan/anv_entrypoints_gen.py $(vulkan_api_xml)
+	$(MKDIR_GEN)
 	$(AM_V_GEN)$(PYTHON2) $(srcdir)/vulkan/anv_entrypoints_gen.py \
 		--xml $(vulkan_api_xml) --outdir $(builddir)/vulkan
 vulkan/anv_entrypoints.h: vulkan/anv_entrypoints.c
-- 
2.11.1



More information about the mesa-dev mailing list