2002-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / runtime / Makefile.am
index e55fe8589dbb2e86a1325c4a25c9965b5aff90dd..ef83eaf285493a8b0b964479d581e99a70faed4a 100644 (file)
@@ -3,22 +3,37 @@
 # being compiled on windows.
 #
 
+assemblies_DATA =      \
+       corlib.dll      \
+       System.dll      \
+       System.Data.dll \
+       System.Xml.dll  \
+       System.Web.dll  \
+       System.Drawing.dll
+
+monobins_DATA = mcs.exe
+
+EXTRA_DIST = $(monobins_DATA) $(assemblies_DATA)
+
 #
 # Keep in sync with mono/mono/metadata/Makefile.am
 #
 assembliesdir = $(libdir)
+monobinsdir = $(bindir)
 
-install-data-hook:
-       -cp $(srcdir)/*.dll $(assembliesdir)
-       -cp $(srcdir)/*.exe $(bindir)
+$(assemblies_DATA):
+       cp $(top_srcdir)/../mcs/class/lib/$@ . || cp $(assembliesdir)/$@ . || touch $@
 
+$(monobins_DATA):
+       cp $(top_srcdir)/../mcs/mcs/$@ . || cp $(monobinsdir)/$@ . || touch $@
 
 dist-hook:
-       -cp $(srcdir)/*.dll $(distdir)
-       -cp $(srcdir)/*.exe $(distdir)
+       for i in $(monobins_DATA) $(assemblies_DATA); do        \
+               if test ! -s $(srcdir)/$$i; then echo $$i is empty && exit 1; fi        \
+       done
 
 copy_dlls:
        cp /nt/mono/mcs/class/*/*.dll .
 
 push_dlls:
-       scp -o "Protocol 1" *.dll snapshot@mono-cvs.ximian.com:dlls
+       scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls