Merge pull request #1057 from lextm/master
[mono.git] / mono / Makefile.am
1 if CROSS_COMPILING
2 SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis profiler
3 else
4 if INSTALL_MONOTOUCH
5 SUBDIRS = utils io-layer metadata arch mini profiler
6
7 monotouch-do-build:
8         @list='$(SUBDIRS)'; for subdir in $$list; do \
9           case "x$$subdir" in \
10                 xmetadata ) target="monotouch-do-build" ;; \
11                 xmini ) target="monotouch-do-build" ;; \
12                 * ) target="all" ;; \
13           esac; \
14           echo "Making $$target in $$subdir"; \
15           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
16     done;
17
18 monotouch-do-clean:
19         @list='$(SUBDIRS)'; for subdir in $$list; do \
20           case "x$$subdir" in \
21                 xmetadata ) target="monotouch-do-clean" ;; \
22                 xmini ) target="monotouch-do-clean" ;; \
23                 * ) target="clean" ;; \
24           esac; \
25           echo "Making $$target in $$subdir"; \
26           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
27     done;
28 else
29 SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis monograph tests unit-tests benchmark profiler
30 endif
31 endif
32 DIST_SUBDIRS = arch utils io-layer cil metadata interpreter mini dis monograph tests unit-tests benchmark profiler