2 SUBDIRS := build jay mcs class mbas nunit20 monoresgen 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 install: platform-check profile-check install-recursive #install-local
12 test: platform-check profile-check test-recursive #test-local
14 run-test: run-test-recursive #run-test-local
16 clean: clean-recursive #clean-local
18 # fun specialty targets
21 @cd class/corlib && $(MAKE) test run-test
23 # Disting. We need to override $(distdir) here.
25 package := mcs-$(VERSION)
26 top_distdir = $(dots)/$(package)
27 distdir = $(top_distdir)
44 ScalableMonoIcon.svg \
51 tar cvzf $(package).tar.gz $(package)
53 dist-local: dist-default
55 dist-tarball: dist-pre dist-recursive dist-post
60 # the egrep -v is kind of a hack (to get rid of the makefrags)
61 # but otherwise we have to make dist then make clean which
62 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
64 # We need to set prefix on make so class/System/Makefile can find
65 # the installed System.Xml to build properly
68 rm -rf InstallTest Distcheck-MCS ; \
70 destdir=`cd InstallTest && pwd` ; \
71 $(MAKE) dist-tarball || exit 1 ; \
72 mv $(package) Distcheck-MCS ; \
73 (cd Distcheck-MCS && \
74 make prefix=$(prefix) && make test && make install DESTDIR="$$destdir" && \
75 make clean && make dist || exit 1) || exit 1 ; \
76 mv Distcheck-MCS $(package) ; \
77 tar tzf $(package)/$(package).tar.gz |sed -e 's,/$$,,' |sort >distdist.list ; \
78 rm $(package)/$(package).tar.gz ; \
79 tar tzf $(package).tar.gz |sed -e 's,/$$,,' |sort >before.list ; \
80 find $(package) |egrep -v '(makefrag|response)' |sed -e 's,/$$,,' |sort >after.list ; \
81 cmp before.list after.list || exit 1 ; \
82 cmp before.list distdist.list || exit 1 ; \
83 rm -f before.list after.list distdist.list ; \
84 rm -rf $(package) InstallTest
87 chargedir=monocharge-`date -u +%Y%m%d` ; \
88 mkdir "$$chargedir" ; \
89 DESTDIR=`cd "$$chargedir" && pwd` ; \
90 $(MAKE) install DESTDIR="$$DESTDIR" || exit 1 ; \
91 tar cvzf "$$chargedir".tgz "$$chargedir" ; \
94 # A bare-bones monocharge.
97 chargedir=monocharge-lite-`date -u +%Y%m%d` ; \
98 mkdir "$$chargedir" ; \
99 DESTDIR=`cd "$$chargedir" && pwd` ; \
100 $(MAKE) -C mcs install DESTDIR="$$DESTDIR" || exit 1; \
101 $(MAKE) -C class/corlib install DESTDIR="$$DESTDIR" || exit 1; \
102 $(MAKE) -C class/System install DESTDIR="$$DESTDIR" || exit 1; \
103 $(MAKE) -C class/System.XML install DESTDIR="$$DESTDIR" || exit 1; \
104 $(MAKE) -C class/Mono.CSharp.Debugger install DESTDIR="$$DESTDIR" || exit 1; \
105 tar cvzf "$$chargedir".tgz "$$chargedir" ; \