thisdir := .
-SUBDIRS := build jay mcs class mbas nunit20 monoresgen ilasm tools tests errors docs
+SUBDIRS := build jay mcs monoresgen class mbas nunit20 ilasm tools tests errors docs
+OVERRIDE_TARGET_ALL = yes
include build/rules.make
-all-local: platform-check
+all-recursive $(STD_TARGETS:=-recursive): platform-check profile-check
-install-local: platform-check
+all.override:
+ $(MAKE) NO_SIGN_ASSEMBLY=yes all.real
+ $(MAKE) all.real
-test-local: platform-check
+all-local $(STD_TARGETS:=-local):
+ @:
-clean-local:
+# fun specialty targets
-dist-local:
+all-profiles:
+ $(MAKE) PROFILE=default all
+ $(MAKE) PROFILE=net_2_0 all
-# fun specialty targets
+clean-profiles:
+ $(MAKE) PROFILE=default clean
+ $(MAKE) PROFILE=net_2_0 clean
testcorlib:
@cd class/corlib && $(MAKE) test run-test
-bootstrap:
- $(MAKE) all MCS='$$(INTERNAL_MCS)'
-
-unbootstrap:
- $(MAKE) all MCS='$$(BOOTSTRAP_MCS)'
-
# Disting. We need to override $(distdir) here.
package := mcs-$(VERSION)
MIT.X11 \
MonoIcon.png \
README \
- README.building \
ScalableMonoIcon.svg \
winexe.in
dist-post:
tar cvzf $(package).tar.gz $(package)
-dist-tarball: dist-pre dist-default dist-recursive dist-post
+dist-local: dist-default
+
+dist-tarball: dist-pre dist-recursive dist-post
dist: dist-tarball
rm -rf $(package)
# the egrep -v is kind of a hack (to get rid of the makefrags)
# but otherwise we have to make dist then make clean which
# is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
+#
+# We need to set prefix on make so class/System/Makefile can find
+# the installed System.Xml to build properly
distcheck:
rm -rf InstallTest Distcheck-MCS ; \
$(MAKE) dist-tarball || exit 1 ; \
mv $(package) Distcheck-MCS ; \
(cd Distcheck-MCS && \
- make && make test && make install DESTDIR="$$destdir" && \
- make clean && make dist || exit 1) || exit 1 ; \
+ $(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
+ $(MAKE) clean && $(MAKE) dist || exit 1) || exit 1 ; \
mv Distcheck-MCS $(package) ; \
tar tzf $(package)/$(package).tar.gz |sed -e 's,/$$,,' |sort >distdist.list ; \
rm $(package)/$(package).tar.gz ; \