src/intel/Makefile.vulkan.am: add missing MKDIR_GEN
authorRoss Burton <ross.burton@intel.com>
Wed, 9 May 2018 20:48:43 +0000 (21:48 +0100)
committerMatt Turner <mattst88@gmail.com>
Wed, 9 May 2018 23:08:52 +0000 (16:08 -0700)
Out of tree builds can try to write into a directory that doesn't exist yet:

| Traceback (most recent call last):
|   File "../../../mesa-18.0.2/src/intel/vulkan/anv_icd.py", line 46, in <module>
|     with open(args.out, 'w') as f:
| IOError: [Errno 2] No such file or directory: 'vulkan/intel_icd.x86_64.json'
| Makefile:4882: recipe for target 'vulkan/intel_icd.x86_64.json' failed

Add missing MKDIR_GEN calls to solve this.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/Makefile.vulkan.am

index 0bcbf0419ca6fdfe6ed991d126e9c5f43de2b556..4125cb205ad3c3b0cbc3312cd23bc949c7d28c59 100644 (file)
@@ -64,10 +64,12 @@ EXTRA_DIST += \
        vulkan/TODO
 
 vulkan/dev_icd.json : vulkan/anv_extensions.py vulkan/anv_icd.py
+       $(MKDIR_GEN)
        $(AM_V_GEN)$(PYTHON2) $(srcdir)/vulkan/anv_icd.py \
                --lib-path="${abs_top_builddir}/${LIB_DIR}" --out $@
 
 vulkan/intel_icd.@host_cpu@.json : vulkan/anv_extensions.py vulkan/anv_icd.py
+       $(MKDIR_GEN)
        $(AM_V_GEN)$(PYTHON2) $(srcdir)/vulkan/anv_icd.py \
                --lib-path="${libdir}" --out $@