* [PATCH] Makefile.am: Fix a race issue for tools
@ 2018-12-25 2:36 Robert Yang
0 siblings, 0 replies; only message in thread
From: Robert Yang @ 2018-12-25 2:36 UTC (permalink / raw)
To: linux-bluetooth
Fixed a race issue when do parallel build:
cp ../bluez-5.50/tools/hid2hci.rules tools/97-hid2hci.rules
cp: cannot create regular file tools/97-hid2hci.rules: No such file or directory
make[1]: *** [tools/97-hid2hci.rules] Error 1
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.am b/Makefile.am
index f84a1fa..9db1573 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -570,6 +570,7 @@ src/builtin.h: src/genbuiltin $(builtin_sources)
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
tools/%.rules:
+ [ -e tools ] || $(MKDIR_P) tools
$(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
$(lib_libbluetooth_la_OBJECTS): $(local_headers)
--
2.10.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-25 2:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-25 2:36 [PATCH] Makefile.am: Fix a race issue for tools Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).