1 AUTOMAKE_OPTIONS = foreign
3 SUBDIRS = @libgc_dir@ mono doc docs runtime scripts man data
5 dnl EXTRA_SUBDIRS = libgc
7 EXTRA_DIST= mono.pc.in mono.spec.in
9 pkgconfigdir = $(libdir)/pkgconfig
10 pkgconfig_DATA= mono.pc
11 DISTCLEANFILES= mono.pc
14 # The following target is used to compile and install
15 # mono and mcs without running into the out-of-sync
16 # problems by doing the compilation in the right order.
19 fullbuild: remove-binaries mcs-tree-safe-build xinstall-runtime mcs-rest install
23 (cd ../mcs/mcs; make MCS=mcs)
24 (cd ../mcs/class/corlib; make MCS=mcs)
25 cp ../mcs/class/lib/corlib.dll runtime
26 cp ../mcs/mcs/mcs.exe runtime
29 if echo $(SUBDIRS) | grep "libgc " > /dev/null; then (cd libgc; make && make install); fi
30 (cd mono; make && make install)
33 (cd ../mcs/class; make)
36 rm ../mcs/class/lib/corlib.dll ../mcs/mcs/mcs.exe runtime/*dll runtime/*.exe >& /dev/null; echo