etctmp = etc
symlinks = etc/mono/1.0/machine.config etc/mono/2.0/machine.config etc/mono/2.0/web.config etc/mono/browscap.ini etc/mono/2.0/Browsers/Compat.browser
+if INSTALL_4_0
+symlinks += etc/mono/4.0/machine.config etc/mono/4.0/web.config
+endif
+
etc/mono/1.0/machine.config: $(top_srcdir)/data/net_1_1/machine.config
etc/mono/2.0/machine.config: $(top_srcdir)/data/net_2_0/machine.config
etc/mono/2.0/web.config: $(top_srcdir)/data/net_2_0/web.config
etc/mono/browscap.ini: $(top_srcdir)/data/browscap.ini
etc/mono/2.0/Browsers/Compat.browser: $(top_srcdir)/data/net_2_0/Browsers/Compat.browser
+etc/mono/4.0/machine.config: $(top_srcdir)/data/net_4_0/machine.config
+etc/mono/4.0/web.config: $(top_srcdir)/data/net_4_0/web.config
$(symlinks):
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
SUPPORT_FILES = $(symlinks) mono-wrapper etc/mono/config
+build_profiles = net_1_1
+test_profiles = $(build_profiles)
+
if INSTALL_2_0
+build_profiles += net_2_0 net_3_5
+test_profiles += net_2_0 net_3_5
+endif
+
+if INSTALL_4_0
+build_profiles += net_4_0
+#test_profiles += net_4_0
+endif
+
if INSTALL_2_1
-build_profiles = net_1_1 net_2_0 net_3_5 net_2_1_raw
-test_profiles = net_1_1 net_2_0 net_3_5 net_2_1
-else
-build_profiles = net_1_1 net_2_0 net_3_5
-test_profiles = $(build_profiles)
+build_profiles += net_2_1_raw
+test_profiles += net_2_1_raw
endif
-else
-build_profiles = net_1_1
-test_profiles = $(build_profiles)
+
+if INSTALL_MONOTOUCH
+build_profiles += monotouch
endif
if BUILD_MCS