diff mbox series

[BlueZ,v2] Makefile.am: add missing mkdir in rules generation

Message ID 20191008100156.3813-1-ross.burton@intel.com
State New
Headers show
Series [BlueZ,v2] Makefile.am: add missing mkdir in rules generation | expand

Commit Message

Ross Burton Oct. 8, 2019, 10:01 a.m. UTC
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.
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)

-- 
2.20.1

Comments

Luiz Augusto von Dentz Oct. 9, 2019, 3:01 p.m. UTC | #1
Hi Ross,

On Tue, Oct 8, 2019 at 1:04 PM Ross Burton <ross.burton@intel.com> wrote:
>

> 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.

> ---

>  Makefile.am | 1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/Makefile.am b/Makefile.am

> index 2ac28b23d..e7bcd2366 100644

> --- a/Makefile.am

> +++ b/Makefile.am

> @@ -589,6 +589,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)

> --

> 2.20.1


Applied, thanks.

-- 
Luiz Augusto von Dentz
diff mbox series

Patch

diff --git a/Makefile.am b/Makefile.am
index 2ac28b23d..e7bcd2366 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -589,6 +589,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)