2008-11-20 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / build / Makefile
index 6ac7fa56123393a8fe95c0b9cdf580bb08aa8e65..46b6d086400d8c5e1f750797ee1c066c1ffd9677 100644 (file)
@@ -2,21 +2,48 @@ thisdir = build
 SUBDIRS = 
 include ../build/rules.make
 
-all-local install-local test-local run-test-local run-test-ondotnet-local clean-local uninstall-local:
+BUILT_FILES = common/Consts.cs
+
+all-local install-local test-local run-test-local run-test-ondotnet-local uninstall-local doc-update-local: $(BUILT_FILES)
+       @:
+
+clean-local:
+       -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 \
+       net_1_1 \
+       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                      \
-       platforms/linux.make            \
-       platforms/win32.make            \
-       profiles/default.make           \
-       profiles/atomic.make            \
-       profiles/net_1_0.make
+       $(COMMON_SRCS:%=common/%)       \
+       $(PLATFORMS:%=platforms/%.make) $(PROFILES:%=profiles/%.make)
 
 dist-local: dist-default
-       mkdir $(distdir)/deps
+