2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / makefile
index 984e5c1e3eba95e40193a04eb2b14cc66d82e9db..82950e75816836a56eabe0a3b0798d3176b8716b 100755 (executable)
@@ -1,17 +1,18 @@
-VERSION=0.13.99
+VERSION=0.23.99
+DIST=monocharge-`date -u +%Y%m%d`
 
 DIRS=jay nant mcs class nunit20 monoresgen tools mbas ilasm
 INSTALL= /usr/bin/install
 
 all: 
-       if test x$(OS) = xWindows_NT; then make linux; else make -f makefile.gnu; fi
+       if test x$(OS) = xWindows_NT; then make windows; else make -f makefile.gnu; fi
 
 install:
        if test x$(OS) = xWindows_NT; then make windowsinstall; else make -f makefile.gnu install; fi
 
 windows:
        for i in $(DIRS); do                    \
-               (cd $$i; make linux) || exit 1; \
+               (cd $$i; make windows) || exit 1;       \
        done
 
 linux:
@@ -50,6 +51,12 @@ dist:
        tar czvf $$d/mcs-$(VERSION).tar.gz --exclude=CVS --exclude='.#*' --exclude=core --exclude='*~' --exclude='*.exe' mcs-$(VERSION); \
        rm -rf mcs-$(VERSION))
 
+binary-snapshot: all
+       mkdir $(DIST)
+       $(MAKE) install prefix=$(PWD)/$(DIST) || exit 1; \
+       tar -c $(DIST) | gzip > $(DIST).tar.gz
+       rm -rf $(DIST)
+
 windowsinstall:
        if test x$$prefix = x; then             \
                echo Usage is: make install prefix=X:/cygwin/home/MyHome/mono/install;  exit 1; \
@@ -126,4 +133,3 @@ MONO_WIN_INSTALL_BIN=       \
        tools/GenerateDelegate.exe      \
        tools/monostyle.exe     \
        tools/SqlSharp/sqlsharp.exe     \
-