[Mesa-dev] [PATCH 25/25] anv: automake: tweak anv_entrypoint.[ch] rule

Emil Velikov emil.l.velikov at gmail.com
Thu Apr 21 13:16:25 UTC 2016


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

Rather than using cat + cpp feed the file(s) directly into the latter.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/intel/vulkan/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am
index 2713429..b852c4f 100644
--- a/src/intel/vulkan/Makefile.am
+++ b/src/intel/vulkan/Makefile.am
@@ -125,8 +125,8 @@ VULKAN_LIB_DEPS += \
 nodist_EXTRA_libvulkan_intel_la_SOURCES = dummy.cpp
 libvulkan_intel_la_SOURCES = $(VULKAN_GEM_FILES)
 
-anv_entrypoints.c anv_entrypoints.h : anv_entrypoints_gen.py $(vulkan_include_HEADERS)
-	$(AM_V_GEN) cat $(vulkan_include_HEADERS) | $(CPP) $(AM_CPPFLAGS) - | \
+anv_entrypoints.c anv_entrypoints.h : anv_entrypoints_gen.py $(top_srcdir)/include/vulkan/vulkan_intel.h
+	$(AM_V_GEN)$(CPP) $(AM_CPPFLAGS) $(top_srcdir)/include/vulkan/vulkan_intel.h |\
 	$(PYTHON2) $(srcdir)/anv_entrypoints_gen.py $(builddir)
 
 BUILT_SOURCES = $(VULKAN_GENERATED_FILES)
-- 
2.8.0



More information about the mesa-dev mailing list