Permalink
Browse files

install: symlink libs too from 4.5 to 4.0

This commit was incomplete because it only linked
executables, not libraries:

5cc6d40
  • Loading branch information...
1 parent 09be1cb commit 473bcd4f8526e0e5ca3de099b55206c38539c426 @knocte knocte committed Sep 24, 2012
Showing with 9 additions and 2 deletions.
  1. +1 −1 src/fsharp/FSharp.Core/Makefile.in
  2. +1 −1 src/fsharp/fsi/Makefile.in
  3. +7 −0 src/fsharp/targets.make
@@ -79,5 +79,5 @@ $(tmpdir)FSCore.resources: $(srcdir)FSCore.resx
include $(topdir)/src/fsharp/targets.make
-install: install-lib-2 install-lib-4
+install: install-lib-2 install-lib-4 install-lib-4-5
@@ -37,5 +37,5 @@ $(tmpdir)FSIstrings.resources: $(srcdir)/FSIstrings.txt
include $(topdir)/src/fsharp/targets.make
-install: install-bin-2 install-bin-4
+install: install-bin-2 install-bin-4 install-bin-4-5
@@ -107,6 +107,13 @@ install-lib-2 install-lib-4:
$(INSTALL_LIB) $(outdir)Microsoft.FSharp.targets $(DESTDIR)/$(libdir)mono/$(TARGET)/;
ln -fs $(DESTDIR)/$(libdir)mono/$(TARGET)/Microsoft.FSharp.targets $(DESTDIR)/$(libdir)mono/Microsoft\ F#/v$(TARGET)/Microsoft.FSharp.Targets
+install-lib-4-5: install-lib-4
+ @if test -e $(DESTDIR)$(libdir)mono/4.5/; then \
+ ln -fs $(DESTDIR)$(libdir)mono/4.0/$(ASSEMBLY) $(DESTDIR)$(libdir)mono/4.5/$(ASSEMBLY); \
+ ln -fs $(DESTDIR)$(libdir)mono/4.0/$(NAME).sigdata $(DESTDIR)$(libdir)mono/4.5/$(NAME).sigdata; \
+ ln -fs $(DESTDIR)$(libdir)mono/4.0/$(NAME).optdata $(DESTDIR)$(libdir)mono/4.5/$(NAME).optdata; \
+ fi
+
install-bin-2 install-bin-4:
sed -e 's,[@]DIR[@],$(libdir)mono/$(TARGET),g' -e 's,[@]TOOL[@],$(ASSEMBLY),g' < $(topdir)launcher.in > $(outdir)$(subst fs,fsharp,$(NAME))$(VERSION)
chmod +x $(outdir)$(subst fs,fsharp,$(NAME))$(VERSION)

0 comments on commit 473bcd4

Please sign in to comment.