2 SUBDIRS := build jay mcs monoresgen class mbas nunit20 ilasm tools tests errors docs
3 OVERRIDE_BARE_TARGETS = hells yeah
4 include build/rules.make
6 # Define these ourselves to that the platform checks come first
8 #all: platform-check profile-check all-recursive #all-local
10 .PHONY: all clean all-profiles clean-profiles install uninstall test run-test testcorlib
12 all: platform-check profile-check all-recursive
14 install: platform-check profile-check install-recursive #install-local
16 uninstall: platform-check profile-check uninstall-recursive #uninstall-local
18 test: platform-check profile-check test-recursive #test-local
20 run-test: run-test-recursive #run-test-local
22 clean: clean-recursive #clean-local
24 # fun specialty targets
27 $(MAKE) PROFILE=default all || exit 1 ; \
28 $(MAKE) PROFILE=net_2_0 all || exit 1 ;
31 $(MAKE) PROFILE=default clean || exit 1 ; \
32 $(MAKE) PROFILE=net_2_0 clean || exit 1 ;
35 @cd class/corlib && $(MAKE) test run-test
37 # Disting. We need to override $(distdir) here.
39 package := mcs-$(VERSION)
40 top_distdir = $(dots)/$(package)
41 distdir = $(top_distdir)
58 ScalableMonoIcon.svg \
65 tar cvzf $(package).tar.gz $(package)
67 dist-local: dist-default
69 dist-tarball: dist-pre dist-recursive dist-post
74 # the egrep -v is kind of a hack (to get rid of the makefrags)
75 # but otherwise we have to make dist then make clean which
76 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
78 # We need to set prefix on make so class/System/Makefile can find
79 # the installed System.Xml to build properly
82 rm -rf InstallTest Distcheck-MCS ; \
84 destdir=`cd InstallTest && pwd` ; \
85 $(MAKE) dist-tarball || exit 1 ; \
86 mv $(package) Distcheck-MCS ; \
87 (cd Distcheck-MCS && \
88 $(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
89 $(MAKE) clean && $(MAKE) dist || exit 1) || exit 1 ; \
90 mv Distcheck-MCS $(package) ; \
91 tar tzf $(package)/$(package).tar.gz |sed -e 's,/$$,,' |sort >distdist.list ; \
92 rm $(package)/$(package).tar.gz ; \
93 tar tzf $(package).tar.gz |sed -e 's,/$$,,' |sort >before.list ; \
94 find $(package) |egrep -v '(makefrag|response)' |sed -e 's,/$$,,' |sort >after.list ; \
95 cmp before.list after.list || exit 1 ; \
96 cmp before.list distdist.list || exit 1 ; \
97 rm -f before.list after.list distdist.list ; \
98 rm -rf $(package) InstallTest
101 chargedir=monocharge-`date -u +%Y%m%d` ; \
102 mkdir "$$chargedir" ; \
103 DESTDIR=`cd "$$chargedir" && pwd` ; \
104 $(MAKE) install DESTDIR="$$DESTDIR" || exit 1 ; \
105 tar cvzf "$$chargedir".tgz "$$chargedir" ; \
108 # A bare-bones monocharge.
111 chargedir=monocharge-lite-`date -u +%Y%m%d` ; \
112 mkdir "$$chargedir" ; \
113 DESTDIR=`cd "$$chargedir" && pwd` ; \
114 $(MAKE) -C mcs install DESTDIR="$$DESTDIR" || exit 1; \
115 $(MAKE) -C class/corlib install DESTDIR="$$DESTDIR" || exit 1; \
116 $(MAKE) -C class/System install DESTDIR="$$DESTDIR" || exit 1; \
117 $(MAKE) -C class/System.XML install DESTDIR="$$DESTDIR" || exit 1; \
118 $(MAKE) -C class/Mono.CSharp.Debugger install DESTDIR="$$DESTDIR" || exit 1; \
119 tar cvzf "$$chargedir".tgz "$$chargedir" ; \