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