When the srcdir == builddir we get the link on non-exectable file.
So make always sure fsadm.sh is executable script file.
Add cleanup target for lib/fsadm.
ln -fs "$(abs_top_builddir)/daemons/dmeventd/dmeventd" lib/dmeventd
ln -fs "$(abs_top_builddir)/daemons/lvmetad/lvmetad" lib/lvmetad
ln -fs "$(abs_top_builddir)/scripts/vgimportclone.sh" lib/vgimportclone
+ chmod +x "$(abs_top_builddir)/scripts/fsadm.sh"
ln -fs "$(abs_top_builddir)/scripts/fsadm.sh" lib/fsadm
touch $@
if test "$(srcdir)" != . ; then rm -f $(subst $(srcdir)/, ,$(RUN)) lvm2app.sh ; fi
CLEAN_TARGETS += .lib-dir-stamp .test-stamp $(LIB) \
- lib/dmsetup lib/clvmd lib/dmeventd lib/vgimportclone
+ lib/dmsetup lib/clvmd lib/dmeventd lib/vgimportclone lib/fsadm
.NOTPARALLEL: