Makefile.am: add missing mkdir in rules generation
authorRoss Burton <ross.burton@intel.com>
Tue, 8 Oct 2019 10:01:56 +0000 (11:01 +0100)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:59 +0000 (14:27 +0530)
In parallel out-of-tree builds it's possible that tools/*.rules are
generated before the target directory has been implicitly created. Solve this by
creating the directory before writing into it.

Change-Id: Id9ad0802138cd89c64d339fd8ca202d6f5416f98
Signed-off-by: himanshu <h.himanshu@samsung.com>
Makefile.am

index 13d1b1e..4c1b925 100755 (executable)
@@ -612,6 +612,7 @@ src/builtin.h: src/genbuiltin $(builtin_sources)
        $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
 
 tools/%.rules:
+       $(AM_V_at)$(MKDIR_P) tools
        $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
 
 $(lib_libbluetooth_la_OBJECTS): $(local_headers)