New tests.
[mono.git] / mcs / tools / xbuild / Makefile
1 thisdir = tools/xbuild
2 SUBDIRS = 
3 include ../../build/rules.make
4 HAS_NUNIT_TEST = yes
5
6 ifeq (3.5, $(FRAMEWORK_VERSION))
7 NAME_SUFFIX = .v3.5
8 ASSEMBLY_VERSION = 3.5.0.0
9 else
10 ifeq (4.0, $(FRAMEWORK_VERSION))
11 NAME_SUFFIX = .v4.0
12 ASSEMBLY_VERSION = 4.0.0.0
13 endif
14 endif
15
16 LOCAL_MCS_FLAGS = -r:Microsoft.Build.Framework.dll -r:Microsoft.Build.Utilities$(NAME_SUFFIX).dll -r:Microsoft.Build.Engine.dll
17 PROGRAM = $(topdir)/class/lib/$(PROFILE)/xbuild.exe
18
19 include ../../build/executable.make
20
21 CLEAN_FILES= xbuild.exe xbuild.exe.mdb
22
23 XBUILD_DIR=.
24 include $(XBUILD_DIR)/xbuild_targets.make
25
26 install-local:  install-extras
27
28 WEBAPP_DIR = Microsoft/VisualStudio/v9.0/WebApplications
29 SILVERLIGHT_DIR = $(mono_libdir)/mono/xbuild/Microsoft/Silverlight
30 EXTRAS_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
31 install-extras: 
32         $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR)
33         $(INSTALL_DATA) xbuild/xbuild.rsp $(DESTDIR)$(EXTRAS_DIR)
34         $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/Microsoft.Common.tasks $(DESTDIR)$(EXTRAS_DIR)
35         $(INSTALL_DATA) xbuild/Microsoft.Build.xsd $(DESTDIR)$(EXTRAS_DIR)
36         $(INSTALL_DATA) xbuild/$(FRAMEWORK_VERSION)/Microsoft.Common.targets $(DESTDIR)$(EXTRAS_DIR)
37         $(INSTALL_DATA) xbuild/Microsoft.CSharp.targets $(DESTDIR)$(EXTRAS_DIR)
38         $(INSTALL_DATA) xbuild/Microsoft.VisualBasic.targets $(DESTDIR)$(EXTRAS_DIR)
39         $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR)/MSBuild
40         $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
41         $(INSTALL_DATA) xbuild/MSBuild/Microsoft.Build.Core.xsd $(DESTDIR)$(EXTRAS_DIR)/MSBuild
42         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild
43         $(MKINSTALLDIRS) $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)
44         $(INSTALL_DATA) xbuild/Microsoft.WebApplication.targets $(DESTDIR)$(mono_libdir)/mono/xbuild/$(WEBAPP_DIR)
45         $(MKINSTALLDIRS) $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
46         $(MKINSTALLDIRS) $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
47         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.CSharp.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
48         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.CSharp.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
49         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.VisualBasic.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0
50         $(INSTALL_DATA) xbuild/Microsoft.Silverlight.VisualBasic.targets $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0
51         sed -e 's/@SILVERLIGHT_VERSION@/2.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0/Microsoft.Silverlight.Common.targets
52         sed -e 's/@SILVERLIGHT_VERSION@/3.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0/Microsoft.Silverlight.Common.targets
53
54 EXTRA_DISTFILES = \
55         xbuild/xbuild.rsp \
56         xbuild/2.0/Microsoft.Common.tasks \
57         xbuild/3.5/Microsoft.Common.tasks \
58         xbuild/4.0/Microsoft.Common.tasks \
59         xbuild/2.0/Microsoft.Common.targets \
60         xbuild/3.5/Microsoft.Common.targets \
61         xbuild/4.0/Microsoft.Common.targets \
62         xbuild/Microsoft.Build.xsd \
63         xbuild/Microsoft.CSharp.targets \
64         xbuild/MSBuild/Microsoft.Build.CommonTypes.xsd \
65         xbuild/MSBuild/Microsoft.Build.Core.xsd         \
66         xbuild/Microsoft.VisualBasic.targets \
67         xbuild/Microsoft.WebApplication.targets \
68         xbuild/Microsoft.Silverlight.Common.targets \
69         xbuild/Microsoft.Silverlight.CSharp.targets \
70         xbuild/Microsoft.Silverlight.VisualBasic.targets \
71         xbuild_targets.make