1 DIRS=jay mcs class mbas nunit nunit20 monoresgen ilasm tools
2 DIST=monocharge-`date -u +%Y%m%d`
4 INSTALL=/usr/bin/install
5 DOCFILES= README.building
12 if ! which $(MCS); then \
13 echo You must have a C\# compiler installed to continue.; \
14 echo This is typically provided by \'mono\'.; \
15 echo Read INSTALL.txt for details.; \
18 for i in $(DIRS) ; do \
19 $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
23 if test x$$prefix = x; then \
24 echo Usage is: make -f makefile.gnu install prefix=YOURPREFIX; \
27 for i in $(DIRS) ; do \
28 $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
30 mkdir -p $(prefix)/share/doc/mono
31 $(INSTALL) -m 644 $(DOCFILES) $(prefix)/share/doc/mono
35 for i in $(DIRS) ; do \
36 $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
40 $(MAKE) -C class/corlib/Test -f makefile.gnu test
43 -rm -f monocharge-*.tar.gz
44 for i in $(DIRS) ; do \
45 $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
49 $(MAKE) -C class/corlib -f makefile.gnu
51 # Please do only use `binary-snapshot', the `dist' target will disappear really soon !
56 for i in $(DIRS) ; do \
57 $(MAKE) -C $$i -f makefile.gnu install prefix=$(PWD)/$(DIST) || exit 1; \
59 tar -c $(DIST) | gzip > $(DIST).tar.gz