From 8211e3e60d941ed62c4a0d22de3967a8ded7d805 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 3 Mar 2017 14:22:44 -0800 Subject: anv: Generate anv_entrypoints header and code in one command This produces the header and the code in one command, saving the need to call the same script twice, which parses the same XML file. Signed-off-by: Dylan Baker --- src/intel/Makefile.vulkan.am | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/intel/Makefile.vulkan.am') diff --git a/src/intel/Makefile.vulkan.am b/src/intel/Makefile.vulkan.am index 96962861d8f..da1ee93d91c 100644 --- a/src/intel/Makefile.vulkan.am +++ b/src/intel/Makefile.vulkan.am @@ -24,11 +24,10 @@ # out and we'll fail at `make dist' vulkan_api_xml = $(top_srcdir)/src/vulkan/registry/vk.xml -vulkan/anv_entrypoints.h : vulkan/anv_entrypoints_gen.py $(vulkan_api_xml) - $(AM_V_GEN)$(PYTHON2) $(srcdir)/vulkan/anv_entrypoints_gen.py header $@ --xml $(vulkan_api_xml) - -vulkan/anv_entrypoints.c : vulkan/anv_entrypoints_gen.py $(vulkan_api_xml) - $(AM_V_GEN)$(PYTHON2) $(srcdir)/vulkan/anv_entrypoints_gen.py code $@ --xml $(vulkan_api_xml) +vulkan/anv_entrypoints.c: vulkan/anv_entrypoints_gen.py $(vulkan_api_xml) + $(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 BUILT_SOURCES += $(VULKAN_GENERATED_FILES) CLEANFILES += \ -- cgit v1.2.3