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 .PHONY: all clean all-profile clean-profile install uninstall test run-test testcorlib
13 $(MAKE) PROFILE=default $@-profile
14 ifneq ($(PLATFORM),win32)
15 $(MAKE) PROFILE=net_2_0 $@-profile
18 $(MAKE) PROFILE=$(PROFILE) $@-profile
21 all-profile: platform-check profile-check all-recursive
23 install: platform-check profile-check install-recursive #install-local
25 uninstall: platform-check profile-check uninstall-recursive #uninstall-local
27 test: platform-check profile-check test-recursive #test-local
29 run-test: run-test-recursive #run-test-local
31 clean-profile: clean-recursive #clean-local
33 # fun specialty targets
36 @cd class/corlib && $(MAKE) test run-test
38 # Disting. We need to override $(distdir) here.
40 package := mcs-$(VERSION)
41 top_distdir = $(dots)/$(package)
42 distdir = $(top_distdir)
59 ScalableMonoIcon.svg \
66 tar cvzf $(package).tar.gz $(package)
68 dist-local: dist-default
70 dist-tarball: dist-pre dist-recursive dist-post
75 # the egrep -v is kind of a hack (to get rid of the makefrags)
76 # but otherwise we have to make dist then make clean which
77 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
79 # We need to set prefix on make so class/System/Makefile can find
80 # the installed System.Xml to build properly
83 rm -rf InstallTest Distcheck-MCS ; \
85 destdir=`cd InstallTest && pwd` ; \
86 $(MAKE) dist-tarball || exit 1 ; \
87 mv $(package) Distcheck-MCS ; \
88 (cd Distcheck-MCS && \
89 $(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
90 $(MAKE) clean && $(MAKE) dist || exit 1) || exit 1 ; \
91 mv Distcheck-MCS $(package) ; \
92 tar tzf $(package)/$(package).tar.gz |sed -e 's,/$$,,' |sort >distdist.list ; \
93 rm $(package)/$(package).tar.gz ; \
94 tar tzf $(package).tar.gz |sed -e 's,/$$,,' |sort >before.list ; \
95 find $(package) |egrep -v '(makefrag|response)' |sed -e 's,/$$,,' |sort >after.list ; \
96 cmp before.list after.list || exit 1 ; \
97 cmp before.list distdist.list || exit 1 ; \
98 rm -f before.list after.list distdist.list ; \
99 rm -rf $(package) InstallTest
102 chargedir=monocharge-`date -u +%Y%m%d` ; \
103 mkdir "$$chargedir" ; \
104 DESTDIR=`cd "$$chargedir" && pwd` ; \
105 $(MAKE) install DESTDIR="$$DESTDIR" || exit 1 ; \
106 tar cvzf "$$chargedir".tgz "$$chargedir" ; \
109 # A bare-bones monocharge.
112 chargedir=monocharge-lite-`date -u +%Y%m%d` ; \
113 mkdir "$$chargedir" ; \
114 DESTDIR=`cd "$$chargedir" && pwd` ; \
115 $(MAKE) -C mcs install DESTDIR="$$DESTDIR" || exit 1; \
116 $(MAKE) -C class/corlib install DESTDIR="$$DESTDIR" || exit 1; \
117 $(MAKE) -C class/System install DESTDIR="$$DESTDIR" || exit 1; \
118 $(MAKE) -C class/System.XML install DESTDIR="$$DESTDIR" || exit 1; \
119 $(MAKE) -C class/Mono.CSharp.Debugger install DESTDIR="$$DESTDIR" || exit 1; \
120 tar cvzf "$$chargedir".tgz "$$chargedir" ; \