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