1 thisdir = class/reference-assemblies
3 include ../../build/rules.make
7 PROFILE_DIR=$(DESTDIR)$(mono_libdir)/mono
10 $(MKINSTALLDIRS) $(PROFILE_DIR)/2.0-api
11 $(MKINSTALLDIRS) $(PROFILE_DIR)/3.5-api
12 $(MKINSTALLDIRS) $(PROFILE_DIR)/4.0-api
13 $(MKINSTALLDIRS) $(PROFILE_DIR)/4.5-api
14 $(MKINSTALLDIRS) $(PROFILE_DIR)/4.5-api/Facades
15 $(INSTALL_LIB) ../../../external/binary-reference-assemblies/v2.0/*.dll $(PROFILE_DIR)/2.0-api
16 $(INSTALL_LIB) ../../../external/binary-reference-assemblies/v3.5/*.dll $(PROFILE_DIR)/3.5-api
17 $(INSTALL_LIB) ../../../external/binary-reference-assemblies/v4.0/*.dll $(PROFILE_DIR)/4.0-api
18 $(INSTALL_LIB) ../../../external/binary-reference-assemblies/v4.5/*.dll $(PROFILE_DIR)/4.5-api
19 $(INSTALL_LIB) ../../../external/binary-reference-assemblies/v4.5/Facades/*.dll $(PROFILE_DIR)/4.5-api/Facades
21 # Unfortunately, a few programs (most notably NUnit and FSharp) have hardcoded checks for <prefix>/lib/mono/4.0/mscorlib.dll or Mono.Posix.dll,
22 # so we need to place something there or those tools break. We decided to symlink to the reference assembly for now.
23 # See https://bugzilla.xamarin.com/show_bug.cgi?id=38331 and https://bugzilla.xamarin.com/show_bug.cgi?id=41052
24 $(MKINSTALLDIRS) $(PROFILE_DIR)/4.0
25 ln -sf ../4.0-api/mscorlib.dll $(PROFILE_DIR)/4.0/mscorlib.dll
26 ln -sf ../4.0-api/Mono.Posix.dll $(PROFILE_DIR)/4.0/Mono.Posix.dll
28 DISTFILES = $(wildcard ../../../external/binary-reference-assemblies/v4.5/Facades/*.dll) $(wildcard ../../../external/binary-reference-assemblies/v4.5/*.dll) $(wildcard ../../../external/binary-reference-assemblies/v4.0/*.dll) $(wildcard ../../../external/binary-reference-assemblies/v3.5/*.dll) $(wildcard ../../../external/binary-reference-assemblies/v2.0/*.dll) Makefile
30 dist-local: dist-default