From 43acc56d5506c7e318f717fb3634bc16e3438913 Mon Sep 17 00:00:00 2001
From: Robert Yang <liezhi.yang@windriver.com>
Date: Thu, 15 Jan 2015 18:12:07 -0800
Subject: [PATCH] Makefile.am: fix parallel issue

There might be no src dir if src/builtin.h runs earlier, create it to
fix the race issue:

src/genbuiltin nfctype1 nfctype2 nfctype3 nfctype4 p2p > src/builtin.h
/bin/sh: src/builtin.h: No such file or directory

Upstream-Status: Backport [d39f8c0eee659743b4425d395c2f7ab1949e9c71]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 Makefile.am |    1 +
 1 file changed, 1 insertion(+)

Index: neard-0.16/Makefile.am
===================================================================
--- neard-0.16.orig/Makefile.am
+++ neard-0.16/Makefile.am
@@ -244,6 +244,7 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(di
 src/plugin.$(OBJEXT): src/builtin.h
 
 src/builtin.h: src/genbuiltin $(builtin_sources)
+	$(AM_V_at)$(MKDIR_P) src
 	$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
 
 se/plugin.$(OBJEXT): se/builtin.h
