v4l-utils: fix make install problems with ln -s
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 24 Jan 2013 10:54:16 +0000 (11:54 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Thu, 24 Jan 2013 10:56:18 +0000 (11:56 +0100)
commitedaf0da22072cda0e83f12b0bef5408d6d0d582f
treec0490e4cf6413fe09a12cd4b664a27cb80b0f8c9
parent2c8b5e8d9286857f7d25780e15b533de12304d93
v4l-utils: fix make install problems with ln -s

When re-installing the linking of the some libraries fail with a 'File exists'
error:

make  install-exec-hook
make[4]: Entering directory `/home/hve/work/src/v4l/v4l-utils/lib/libv4l2'
/bin/mkdir -p //usr/local/lib
(cd //usr/local/lib && ln -s libv4l/v4l2convert.so v4l2convert.so)
ln: failed to create symbolic link 'v4l2convert.so': File exists
make[4]: *** [install-exec-hook] Error 1
make[4]: Leaving directory `/home/hve/work/src/v4l/v4l-utils/lib/libv4l2'
make[3]: *** [install-exec-am] Error 2
make[3]: Leaving directory `/home/hve/work/src/v4l/v4l-utils/lib/libv4l2'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/hve/work/src/v4l/v4l-utils/lib/libv4l2'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/hve/work/src/v4l/v4l-utils/lib'
make: *** [install-recursive] Error 1

Fix this by removing the old link first.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
lib/libv4l1/Makefile.am
lib/libv4l2/Makefile.am