Merge pull request #618 from knocte/aspnet_lru
[mono.git] / mono / Makefile.am
index 67226f9d763a59a6fd0d6b11b8eead72aec29518..0345c9ddd82d3832a9b3b0ca5dd5d7b5bca3e504 100644 (file)
@@ -1,9 +1,34 @@
 if CROSS_COMPILING
-SUBDIRS = utils io-layer cil metadata arch $(interpreter_dir) mini dis
+SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis profiler
 else
-if MOONLIGHT
+if INSTALL_MONOTOUCH
 SUBDIRS = utils io-layer metadata arch mini profiler
 
+monotouch-do-build:
+       @list='$(SUBDIRS)'; for subdir in $$list; do \
+         case "x$$subdir" in \
+               xmetadata ) target="monotouch-do-build" ;; \
+               xmini ) target="monotouch-do-build" ;; \
+               * ) target="all" ;; \
+         esac; \
+         echo "Making $$target in $$subdir"; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
+    done;
+
+monotouch-do-clean:
+       @list='$(SUBDIRS)'; for subdir in $$list; do \
+         case "x$$subdir" in \
+               xmetadata ) target="monotouch-do-clean" ;; \
+               xmini ) target="monotouch-do-clean" ;; \
+               * ) target="clean" ;; \
+         esac; \
+         echo "Making $$target in $$subdir"; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
+    done;
+else
+if MOONLIGHT
+SUBDIRS = arch utils io-layer metadata mini
+
 moon-do-build:
        @list='$(SUBDIRS)'; for subdir in $$list; do \
          case "x$$subdir" in \
@@ -27,7 +52,8 @@ moon-do-clean:
     done;
 
 else
-SUBDIRS = utils io-layer cil metadata arch $(interpreter_dir) mini dis monograph tests benchmark profiler
+SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis monograph tests benchmark profiler
+endif
 endif
 endif
-DIST_SUBDIRS = utils io-layer cil metadata arch interpreter mini dis monograph tests benchmark profiler
+DIST_SUBDIRS = arch utils io-layer cil metadata interpreter mini dis monograph tests benchmark profiler