Fix MethodMirror.GetCustomAttributes ().
[mono.git] / mono / Makefile.am
index 6f73c4ad29e88ebe0b1bd47ef4316c53f5e6e0fa..2d796f1c480105b4658f3f3cb75993c6ee6a9e85 100644 (file)
@@ -1,9 +1,33 @@
-# the handles dir doesn't apply to windows
-if ! PLATFORM_WIN32
-HANDLES = handles
-endif
+if CROSS_COMPILING
+SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis
+else
+if MOONLIGHT
+SUBDIRS = arch utils io-layer metadata mini
+
+moon-do-build:
+       @list='$(SUBDIRS)'; for subdir in $$list; do \
+         case "x$$subdir" in \
+               xmetadata ) target="moon-do-build" ;; \
+               xmini ) target="moon-do-build" ;; \
+               * ) target="all" ;; \
+         esac; \
+         echo "Making $$target in $$subdir"; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
+    done;
 
-SUBDIRS = utils io-layer monoburg os cil metadata \
-      arch interpreter mini dis monograph tests benchmark profiler
+moon-do-clean:
+       @list='$(SUBDIRS)'; for subdir in $$list; do \
+         case "x$$subdir" in \
+               xmetadata ) target="moon-do-clean" ;; \
+               xmini ) target="moon-do-clean" ;; \
+               * ) target="clean" ;; \
+         esac; \
+         echo "Making $$target in $$subdir"; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
+    done;
 
-DIST_SUBDIRS = $(SUBDIRS) handles
+else
+SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis monograph tests benchmark profiler
+endif
+endif
+DIST_SUBDIRS = arch utils io-layer cil metadata interpreter mini dis monograph tests benchmark profiler