~aleksey14/rhash/master

« back to all changes in this revision

Viewing changes to librhash/Makefile

  • Committer: Aleksey Kravchenko
  • Author(s): Fabrice Fontaine
  • Date: 2020-02-15 16:24:44 UTC
  • Revision ID: git-v1:c5fc5625c4045deeea77288b149544075add960a
librhash/Makefile: fix failure if link exist

Build will fail if librhash.so link already exist (for example due to a
prior install)

Fix this error by calling rm -f before ln -s as done by commit
123e9b76c80861e7648ccf99955c0dc5420d7297 for other links

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
install-so-link:
37
37
        $(INSTALL) -d $(LIBDIR)
 
38
        rm -f $(LIBDIR)/$(LIBRHASH_SOLINK)
38
39
        ln -s $(LIBRHASH_SHARED) $(LIBDIR)/$(LIBRHASH_SOLINK)
39
40
 
40
41
uninstall-lib-static: uninstall-lib-headers