2002-10-23 Ville Palo <vi64pa@koti.soon.fi>
[mono.git] / mcs / makefile
index eb05693978066a3a59d970267305cd9795a9ef4c..f0854bccb9780396e3696b527fd82d23eabbaa07 100755 (executable)
@@ -1,13 +1,34 @@
-DIRS=jay mcs class
+VERSION=0.13.99
 
-all:
-       @echo "You must use 'make windows' or 'make unix'."
-       @echo "'make unix' is broken for now."
+DIRS=jay nant mcs class nunit tools monoresgen
+
+all: 
+       if test x$(OS) = xWindows_NT; then make linux; else make -f makefile.gnu; fi
+
+install:
+       if test x$(OS) = xWindows_NT; then echo Can not install on Windows ; else make -f makefile.gnu install; fi
 
 windows:
        for i in $(DIRS); do                    \
-               (cd $$i; make windows)          \
+               (cd $$i; make linux) || exit 1; \
+       done
+
+linux:
+       for i in $(DIRS); do                    \
+               (cd $$i; make linux) || exit 1; \
        done
 
-unix:
-       echo "'make unix' is broken for now."
+test:
+       (cd nunit; make)
+       (cd class; make test)
+
+clean:
+       for i in $(DIRS); do                    \
+               (cd $$i; make clean)            \
+       done
+
+
+dist: 
+       (c=`pwd`; d=`basename $$c`; cd ..; cp -a $$d mcs-$(VERSION); cd mcs-$(VERSION); make clean; cd ..; \
+       tar czvf $$d/mcs-$(VERSION).tar.gz --exclude=CVS --exclude='.#*' --exclude=core --exclude='*~' --exclude='*.exe' mcs-$(VERSION); \
+       rm -rf mcs-$(VERSION))