Commit b660cc0b authored by Gabor Greif's avatar Gabor Greif 💬
Browse files

make sure to remove the right link before calling 'ln -s' (could we use 'ln -sf'?)

parent bcef1e28
# -----------------------------------------------------------------------------
#
# (c) 2009 The University of Glasgow
# (c) 2009-2012 The University of Glasgow
#
# This file is part of the GHC build system.
#
......@@ -159,7 +159,7 @@ ifeq "$(Windows)" "NO"
install: install_ghc_link
.PHONY: install_ghc_link
install_ghc_link:
$(call removeFiles,"$(DESTDIR)$(bindir)/ghc")
$(call removeFiles,"$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghc")
$(LN_S) $(CrossCompilePrefix)ghc-$(ProjectVersion) "$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghc"
else
# On Windows we install the main binary as $(bindir)/ghc.exe
......
# -----------------------------------------------------------------------------
#
# (c) 2009 The University of Glasgow
# (c) 2009-2012 The University of Glasgow
#
# This file is part of the GHC build system.
#
......@@ -116,7 +116,7 @@ install: install_utils/ghc-pkg_link
.PHONY: install_utils/ghc-pkg_link
install_utils/ghc-pkg_link:
$(call INSTALL_DIR,"$(DESTDIR)$(bindir)")
$(call removeFiles,"$(DESTDIR)$(bindir)/ghc-pkg")
$(call removeFiles,"$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghc-pkg")
$(LN_S) $(CrossCompilePrefix)ghc-pkg-$(ProjectVersion) "$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghc-pkg"
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment