+if CROSS_COMPILING
+SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis profiler
+else
+if INSTALL_MONOTOUCH
+SUBDIRS = utils io-layer metadata arch mini profiler
-SUBDIRS = utils io-layer monoburg os cil metadata \
- arch interpreter mini dis monograph tests benchmark 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
+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