more test
[mono.git] / mcs / build / Makefile
index c671754564aaa7511b576860a82d4c1a9fd8c923..e475f2b4111436c9f6eb2c0a2c7d2555956ab6c1 100644 (file)
@@ -2,28 +2,48 @@ thisdir = build
 SUBDIRS = 
 include ../build/rules.make
 
-all-local install-local test-local run-test-local run-test-ondotnet-local uninstall-local:
+BUILT_FILES = common/Consts.cs
+
+all-local install-local test-local run-test-local run-test-ondotnet-local uninstall-local: $(BUILT_FILES)
        @:
 
 clean-local:
-       -rm -f deps/*
+       -rm -f $(BUILT_FILES) deps/*
+
+common/Consts.cs: common/Consts.cs.in $(wildcard config.make)
+       test -n '$(MONO_VERSION)'
+       sed -e 's,@''MONO_VERSION@,$(MONO_VERSION),' $< > $@
 
 PLATFORMS = linux win32
 PROFILES = \
-       basic net_1_1_bootstrap default net_2_0_bootstrap net_2_0 \
-       atomic net_1_0
+       basic \
+       net_1_1_bootstrap \
+       default \
+       net_2_0_bootstrap \
+       net_2_0 \
+       net_2_1_bootstrap \
+       net_2_1_raw \
+       net_2_1 \
+       net_1_0 \
+       net_3_5
+
+COMMON_SRCS = \
+       Consts.cs.in                    \
+       Locale.cs                       \
+       MonoTODOAttribute.cs
 
 DISTFILES = \
        README.makefiles                \
        README.platforms                \
        README.configury                \
        config-default.make             \
+       corcompare.make                 \
+       corcompare-api.xsl              \
        executable.make                 \
        library.make                    \
        rules.make                      \
-       common/Locale.cs                \
-       common/MonoTODOAttribute.cs     \
+       $(COMMON_SRCS:%=common/%)       \
        $(PLATFORMS:%=platforms/%.make) $(PROFILES:%=profiles/%.make)
 
 dist-local: dist-default
-       $(MKINSTALLDIRS) $(distdir)/deps
+