[ovs-dev] [PATCH] create dir if not exist

Rongqing Li rongqing.li at windriver.com
Wed Aug 26 04:28:49 UTC 2015



On 2015年08月26日 11:48, Ben Pfaff wrote:
> On Wed, Aug 26, 2015 at 11:10:56AM +0800, rongqing.li at windriver.com wrote:
>> From: Roy Li <rongqing.li at windriver.com>
>>
>> If build dir is not same as the source code, make the target .in wrong
>> due to no dir:
>> 	vswitchd/ovs-vswitchd.conf.db.5.tmp: No such file or directory
>>
>> The target .in has not dependency, but in fact, it needs other target to
>> create the dir to put its result, like builddir/vswitchd in below:
>>
>> /usr/bin/perl soexpand.pl < ${S}/vswitchd/ovs-vswitchd.8.in | \
>>      sed \
>>          -e 's,[@]PKIDIR[@],/var/lib/openvswitch/pki,g' \
>>             ......
>>              > vswitchd/ovs-vswitchd.8.tmp
>>
>> fix it by creating the dir in .in target
>>
>> Signed-off-by: Roy Li <rongqing.li at windriver.com>
>
> Running "configure" creates all the necessary directories, so this patch
> is not necessary.
>
>


after configure, I did not find the vswitchd dir under building dir.



the vswitchd dir is created in Makefile.am:


vswitchd/$(am__dirstamp):
         @$(MKDIR_P) vswitchd
         @: > vswitchd/$(am__dirstamp)


similar issues for other dirs


-Roy


-- 
Best Reagrds,
Roy | RongQing Li



More information about the dev mailing list