Work around missing mcs dir for binaries in the same way as for assemblies.
[mono.git] / runtime / Makefile.am
1 #
2 # This is just used to copy and install the DLL files that are currently
3 # being compiled on windows.
4 #
5
6 assemblies_DATA =       \
7         corlib.dll      \
8         System.dll      \
9         System.Data.dll \
10         System.Xml.dll  \
11         System.Web.dll  \
12         System.Web.Services.dll \
13         System.Drawing.dll      \
14         System.EnterpriseServices.dll   \
15         System.Configuration.Install.dll        \
16         System.Runtime.Remoting.dll     \
17         System.Runtime.Serialization.Formatters.Soap.dll        \
18         Mono.CSharp.Debugger.dll        \
19         I18N.dll        \
20         I18N.West.dll   \
21         I18N.Rare.dll   \
22         I18N.Other.dll  \
23         I18N.MidEast.dll        \
24         I18N.CJK.dll
25
26 monobins_DATA = mcs.exe monoresgen.exe
27
28 EXTRA_DIST = $(monobins_DATA) $(assemblies_DATA)
29
30 #
31 # Keep in sync with mono/mono/metadata/Makefile.am
32 #
33 assembliesdir = $(libdir)
34 monobinsdir = $(bindir)
35
36 $(assemblies_DATA):
37         cp $(top_srcdir)/../mcs/class/lib/$@ . || cp $(assembliesdir)/$@ . || touch $@
38
39 $(monobins_DATA):
40         cp $(top_srcdir)/../mcs/mcs/mcs.exe . || cp $(monobinsdir)/$@ . || touch $@
41         cp $(top_srcdir)/../mcs/monoresgen/monoresgen.exe . || cp $(monobinsdir)/$@ . || touch $@
42
43 dist-hook:
44         for i in $(monobins_DATA) $(assemblies_DATA); do        \
45                 if test ! -s $(srcdir)/$$i; then echo $$i is empty && exit 1; fi        \
46         done
47
48 copy_dlls:
49         cp /nt/mono/mcs/class/*/*.dll .
50
51 push_dlls:
52         scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls