DIRS=jay mcs class nunit nunit20 monoresgen ilasm tools DIST=monocharge-`date -u +%Y%m%d` MCS = mcs #nant doesn't work yet default: all all: if ! which $(MCS); then \ echo You must have a C\# compiler installed to continue.; \ echo This is typically provided by \'mono\'.; \ echo Read INSTALL.txt for details.; \ exit 1; \ fi; for i in $(DIRS) ; do \ $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \ done install: if test x$$prefix = x; then \ echo Usage is: make -f makefile.gnu install prefix=YOURPREFIX; \ exit 1; \ fi; for i in $(DIRS) ; do \ $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \ done test: all for i in $(DIRS) ; do \ $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \ done clean: -rm -f monocharge-*.tar.gz for i in $(DIRS) ; do \ $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \ done # Please do only use `binary-snapshot', the `dist' target will disappear really soon ! binary-snapshot: dist dist: all mkdir $(DIST) for i in $(DIRS) ; do \ $(MAKE) -C $$i -f makefile.gnu install prefix=$(PWD)/$(DIST) || exit 1; \ done tar -c $(DIST) | gzip > $(DIST).tar.gz rm -rf $(DIST)