Merge pull request #1410 from alesliehughes/master
[mono.git] / mcs / class / System.Data.Linq / Makefile
1 thisdir = class/System.Data.Linq
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Data.Linq.dll
6 LIB_MCS_FLAGS = \
7                 /r:System.dll \
8                 /r:System.Core.dll \
9                 /r:System.Xml.dll \
10                 /r:System.Data.dll \
11                 /r:System.Runtime.Serialization.dll \
12                 /resource:./src/DbLinq/Schema/Dbml/DbmlSchema.xsd,DbLinq.Schema.Dbml.DbmlSchema.xsd \
13                 /d:MONO_STRICT /d:MONO_DEPLOY -warn:1
14
15 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
16
17 EXTRA_DISTFILES = src/DbLinq/Schema/Dbml/DbmlSchema.xsd
18
19 # This is a .NET 3.5+ assembly
20 VALID_PROFILE := $(filter net_4_0 net_4_5, $(PROFILE))
21 ifndef VALID_PROFILE
22 LIBRARY_NAME = dummy-System.Data.Linq.dll
23 NO_INSTALL = yes
24 NO_SIGN_ASSEMBLY = yes
25 NO_TEST = yes
26 endif
27
28 include ../../build/library.make
29
30 dist-local: dist-default dist-DbLinq
31
32 dist-DbLinq:
33         find src -name '*.cs' -o -name '*.snk' -o -name '*.xml' -o -name '*.txt' > .files ; \
34         tar cTf .files - | (cd $(distdir); tar xf -) ; \
35         rm .files
36
37 RSYNC_EXCLUDES = \
38         --exclude '*.cache'         \
39         --exclude '*.csproj.*.txt'  \
40         --exclude '*.dll'           \
41         --exclude '*.exe'           \
42         --exclude '*.force'         \
43         --exclude '*.pdb'           \
44         --exclude '*.pidb'          \
45         --exclude '*.suo'           \
46         --exclude '*.user'          \
47         --exclude '*.userprefs'     \
48         --exclude '*.usertasks'     \
49         --exclude '.svn' 
50
51 update-dblinq:
52         rsync -avz $(RSYNC_EXCLUDES) $$HOME/Development/mono-HEAD/dblinq2007/src/ src/
53         rsync -avz $(RSYNC_EXCLUDES) $$HOME/Development/mono-HEAD/dblinq2007/tests/ tests/
54         rsync -avz $(RSYNC_EXCLUDES) $$HOME/Development/mono-HEAD/dblinq2007/examples/ examples/
55