Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreia Gaita <avidigal@novell.com>2010-04-09 00:06:16 +0400
committerAndreia Gaita <avidigal@novell.com>2010-04-09 00:06:16 +0400
commitc4695a800c5fa71609ab27b2bd443a00c414c054 (patch)
tree532e82c8298124f7ce8895c030f1489f0964f703 /Makefile.am
parentd7d22b7442de18874f5a2bb03ef387d2adafe26d (diff)
* configure.in: Add an extra "only" option to --with-moonlight. This
will configure mono to only build moonlight-specific stuff and nothing else. --with-moonlight=yes now just adds the moon profile to the build * Makefile.am: Add moonlight-specific rules that only build what moon needs. These are called directly from moon, to do fast moon+mono+mcs builds * runtime/Makefile.am: Change the build rules to have a moonlight-only build configuration, as well as a normal build that optionally includes it svn path=/trunk/mono/; revision=155093
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am24
1 files changed, 19 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index c718a65c258..573238e9a8f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,14 +1,16 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
+MOONLIGHT_SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data
+
if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples web tools msvc docs
else
-if MOONLIGHT
-SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime
+if ONLY_MOONLIGHT
+SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
@@ -70,9 +72,21 @@ build-test-mono-mcs-moon: do-build-moon-maybe
do-build-mono-mcs: mcs-do-clean
$(MAKE) all
-.PHONY: do-build-moon-maybe
-do-build-moon-maybe: do-build-mono-mcs
-# cd runtime && $(MAKE) moon-do-build
+if MOONLIGHT
+moon-do-build: config.h
+ @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
+ echo "Making all in $$subdir"; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) all); \
+ done;
+ cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw all
+
+moon-do-clean:
+ @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
+ echo "Making clean in $$subdir"; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean); \
+ done;
+ cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw clean
+endif
mcs-do-clean:
cd runtime && $(MAKE) clean-local