-# Copyright (C) 2007-2013 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2007-2015 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.
#
$(INSTALL_DATA) $(LIB_FLAVOURS) $(DATADIR)/lib/
$(INSTALL_DATA) $(abs_top_srcdir)/conf/thin-performance.profile $(DATADIR)/lib/thin-performance.profile
$(INSTALL_SCRIPT) $(LIB_SHARED) $(DATADIR)/lib/
- for i in $(CMDS); do (cd $(DATADIR)/lib && ln -fs lvm-wrapper $$i); done
+ for i in $(CMDS); do (cd $(DATADIR)/lib && $(LN_S) -f lvm-wrapper $$i); done
$(INSTALL_DIR) $(EXECDIR)
$(INSTALL_PROGRAM) $(LIB_EXEC) $(EXECDIR)
$(INSTALL_PROGRAM) -D lib/runner $(bindir)/lvm2-testsuite
lib/should: lib/not
- ln -sf not lib/should
+ $(LN_S) -f not lib/should
lib/invalid: lib/not
- ln -sf not lib/invalid
+ $(LN_S) -f not lib/invalid
lib/fail: lib/not
- ln -sf not lib/fail
+ $(LN_S) -f not lib/fail
lib/runner: lib/runner.o .lib-dir-stamp
$(CXX) $(LDFLAGS) -o $@ $<
echo "Linking tests to builddir."; \
$(MKDIR_P) shell; \
for f in $(subst $(srcdir)/,,$(ALL)); do \
- ln -sf $(abs_top_srcdir)/test/$$f $$f; \
+ $(LN_S) -f $(abs_top_srcdir)/test/$$f $$f; \
done; \
fi
@$(MKDIR_P) -m a=rwx $(LVM_TEST_RESULTS)
.lib-dir-stamp:
$(MKDIR_P) lib
- for i in $(CMDS); do ln -fs lvm-wrapper lib/$$i; done
- ln -fs $(abs_top_builddir)/tools/dmsetup lib/dmsetup
- ln -fs $(abs_top_builddir)/daemons/clvmd/clvmd lib/clvmd
- 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)/daemons/lvmpolld/lvmpolld lib/lvmpolld
- ln -fs $(abs_top_srcdir)/scripts/vgimportclone.sh lib/vgimportclone
- ln -fs $(abs_top_srcdir)/scripts/fsadm.sh lib/fsadm
- ln -fs $(abs_top_srcdir)/conf/thin-performance.profile lib/thin-performance.profile
+ for i in $(CMDS); do $(LN_S) -f lvm-wrapper lib/$$i; done
+ $(LN_S) -f $(abs_top_builddir)/tools/dmsetup lib/dmsetup
+ $(LN_S) -f $(abs_top_builddir)/daemons/clvmd/clvmd lib/clvmd
+ $(LN_S) -f $(abs_top_builddir)/daemons/dmeventd/dmeventd lib/dmeventd
+ $(LN_S) -f $(abs_top_builddir)/daemons/lvmetad/lvmetad lib/lvmetad
+ $(LN_S) -f $(abs_top_builddir)/daemons/lvmpolld/lvmpolld lib/lvmpolld
+ $(LN_S) -f $(abs_top_srcdir)/scripts/vgimportclone.sh lib/vgimportclone
+ $(LN_S) -f $(abs_top_srcdir)/scripts/fsadm.sh lib/fsadm
+ $(LN_S) -f $(abs_top_srcdir)/conf/thin-performance.profile lib/thin-performance.profile
touch $@
cleantest: