|
1 # Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 # All rights reserved. |
|
3 # This component and the accompanying materials are made available |
|
4 # under the terms of "Eclipse Public License v1.0" |
|
5 # which accompanies this distribution, and is available |
|
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 # |
|
8 # Initial Contributors: |
|
9 # Nokia Corporation - initial contribution. |
|
10 # |
|
11 # Contributors: |
|
12 # |
|
13 # Description: |
|
14 # Copy SQL test files |
|
15 # |
|
16 # |
|
17 |
|
18 TMPROOT:=$(subst \,/,$(EPOCROOT)) |
|
19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/ |
|
20 |
|
21 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk |
|
22 |
|
23 ifeq ($(findstring WINS,$(PLATFORM)),WINS) |
|
24 TARGETDIR=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/test |
|
25 TARGETDIR2=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/private/10281e17 |
|
26 TARGETDIR3=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/private/21212124 |
|
27 else |
|
28 TARGETDIR=$(EPOCROOT)epoc32/data/z/system/test |
|
29 TARGETDIR2=$(EPOCROOT)epoc32/data/z/private/10281e17 |
|
30 TARGETDIR3=$(EPOCROOT)epoc32/data/z/private/21212124 |
|
31 |
|
32 endif |
|
33 |
|
34 SOURCEDIR = $(EXTENSION_ROOT)/../TEST |
|
35 |
|
36 $(TARGETDIR): |
|
37 $(call createdir, "$@") |
|
38 $(TARGETDIR2): |
|
39 $(call createdir, "$@") |
|
40 $(TARGETDIR3): |
|
41 $(call createdir, "$@") |
|
42 |
|
43 COPYFILES : |
|
44 $(call forcecopy,$(SOURCEDIR)/TestDb1.db,$(TARGETDIR)/testdb1.db) |
|
45 $(call forcecopy,$(SOURCEDIR)/CorruptDb.db,$(TARGETDIR)/corruptdb.db) |
|
46 $(call forcecopy,$(SOURCEDIR)/contacts_schema_to_vendors.sql,$(TARGETDIR)/contacts_schema_to_vendors.sql) |
|
47 $(call forcecopy,$(SOURCEDIR)/add_simple_contacts.sql,$(TARGETDIR)/add_simple_contacts.sql) |
|
48 $(call forcecopy,$(SOURCEDIR)/t_SqlShortNonDb.db,$(TARGETDIR)/t_sqlshortnondb.db) |
|
49 $(call forcecopy,$(SOURCEDIR)/contacts_startup_time.sql,$(TARGETDIR)/contacts_startup_time.sql) |
|
50 $(call forcecopy,$(SOURCEDIR)/t_inc095412.db,$(TARGETDIR)/t_inc095412.db) |
|
51 $(call forcecopy,$(SOURCEDIR)/{21212122}AADb2.db,$(TARGETDIR2)/[21212122]aadb2.db) |
|
52 $(call forcecopy,$(SOURCEDIR)/{21212122}BBDb2.db,$(TARGETDIR2)/[21212122]bbdb2.db) |
|
53 $(call forcecopy,$(SOURCEDIR)/{21212125}T_AB.db,$(TARGETDIR2)/[21212125]t_ab.db) |
|
54 $(call forcecopy,$(SOURCEDIR)/{1111CCCC}T_AB.db,$(TARGETDIR2)/[1111CCCC]t_ab.db) |
|
55 $(call forcecopy,$(SOURCEDIR)/{21212125}T_OneDefPolicy.db,$(TARGETDIR2)/[21212125]t_onedefpolicy.db) |
|
56 # $(call forcecopy,$(SOURCEDIR)/SqlServer.cfg,$(TARGETDIR2)/sqlserver.cfg) |
|
57 $(call forcecopy,$(SOURCEDIR)/t_sqldb1.db,$(TARGETDIR3)/t_sqldb1.db) |
|
58 $(call forcecopy,$(SOURCEDIR)/{98765432}t_2defaultpolicies.db,$(TARGETDIR2)/[98765432]t_2defaultpolicies.db) |
|
59 $(call forcecopy,$(SOURCEDIR)/{98765432}t_emptysettings.db,$(TARGETDIR2)/[98765432]t_emptysettings.db) |
|
60 $(call forcecopy,$(SOURCEDIR)/{98765432}t_invobject.db,$(TARGETDIR2)/[98765432]t_invobject.db) |
|
61 $(call forcecopy,$(SOURCEDIR)/{98765432}t_invversion.db,$(TARGETDIR2)/[98765432]t_invversion.db) |
|
62 $(call forcecopy,$(SOURCEDIR)/{98765432}t_longcollation.db,$(TARGETDIR2)/[98765432]t_longcollation.db) |
|
63 $(call forcecopy,$(SOURCEDIR)/{98765432}t_nocollation.db,$(TARGETDIR2)/[98765432]t_nocollation.db) |
|
64 $(call forcecopy,$(SOURCEDIR)/{98765432}t_nodefaultpolicy.db,$(TARGETDIR2)/[98765432]t_nodefaultpolicy.db) |
|
65 $(call forcecopy,$(SOURCEDIR)/{98765432}t_nosettings.db,$(TARGETDIR2)/[98765432]t_nosettings.db) |
|
66 $(call forcecopy,$(SOURCEDIR)/default_avacon.dbSQL,$(TARGETDIR)/default_avacon.dbSQL) |
|
67 $(call forcecopy,$(SOURCEDIR)/t_sqlbur_backup_ver0.bak,$(TARGETDIR)/t_sqlbur_backup_ver0.bak) |
|
68 $(call forcecopy,$(SOURCEDIR)/t_sqlperformance4.sql,$(TARGETDIR)/t_sqlperformance4.sql) |
|
69 |
|
70 |
|
71 DO_NOTHING : |
|
72 @echo do nothing |
|
73 |
|
74 # |
|
75 # The targets invoked by bld... |
|
76 # |
|
77 |
|
78 MAKMAKE : DO_NOTHING |
|
79 |
|
80 BLD : $(TARGETDIR) $(TARGETDIR2) $(TARGETDIR3) $(SOURCEDIR) COPYFILES |
|
81 |
|
82 CLEAN : |
|
83 $(call forceremove,$(TARGETDIR)/testdb1.db) |
|
84 $(call forceremove,$(TARGETDIR)/corruptdb.db) |
|
85 $(call forceremove,$(TARGETDIR)/contacts_schema_to_vendors.sql) |
|
86 $(call forceremove,$(TARGETDIR)/add_simple_contacts.sql) |
|
87 $(call forceremove,$(TARGETDIR)/t_sqlshortnondb.db) |
|
88 $(call forceremove,$(TARGETDIR)/contacts_startup_time.sql) |
|
89 $(call forceremove,$(TARGETDIR)/t_inc095412.db) |
|
90 $(call forceremove,$(TARGETDIR2)/[21212122]aadb2.db) |
|
91 $(call forceremove,$(TARGETDIR2)/[21212122]bbdb2.db) |
|
92 $(call forceremove,$(TARGETDIR2)/[21212125]t_ab.db) |
|
93 $(call forceremove,$(TARGETDIR2)/[1111CCCC]t_ab.db) |
|
94 $(call forceremove,$(TARGETDIR2)/[21212125]t_onedefpolicy.db) |
|
95 # $(call forceremove,$(TARGETDIR2)/sqlserver.cfg) |
|
96 $(call forceremove,$(TARGETDIR3)/t_sqldb1.db) |
|
97 $(call forceremove,$(TARGETDIR2)/[98765432]t_2defaultpolicies.db) |
|
98 $(call forceremove,$(TARGETDIR2)/[98765432]t_emptysettings.db) |
|
99 $(call forceremove,$(TARGETDIR2)/[98765432]t_invobject.db) |
|
100 $(call forceremove,$(TARGETDIR2)/[98765432]t_invversion.db) |
|
101 $(call forceremove,$(TARGETDIR2)/[98765432]t_longcollation.db) |
|
102 $(call forceremove,$(TARGETDIR2)/[98765432]t_nocollation.db) |
|
103 $(call forceremove,$(TARGETDIR2)/[98765432]t_nodefaultpolicy.db) |
|
104 $(call forceremove,$(TARGETDIR2)/[98765432]t_nosettings.db) |
|
105 $(call forceremove,$(TARGETDIR)/default_avacon.dbSQL) |
|
106 $(call forceremove,$(TARGETDIR)/t_sqlbur_backup_ver0.bak) |
|
107 $(call forceremove,$(TARGETDIR)/t_sqlperformance4.sql) |
|
108 |
|
109 SAVESPACE : DO_NOTHING |
|
110 |
|
111 RESOURCE : DO_NOTHING |
|
112 |
|
113 FREEZE : DO_NOTHING |
|
114 |
|
115 LIB : DO_NOTHING |
|
116 |
|
117 CLEANLIB : DO_NOTHING |
|
118 |
|
119 FINAL : DO_NOTHING |
|
120 |
|
121 RELEASABLES : |
|
122 @echo $(TARGETDIR)/testdb1.db |
|
123 @echo $(TARGETDIR)/corruptdb.db |
|
124 @echo $(TARGETDIR)/contacts_schema_to_vendors.sql |
|
125 @echo $(TARGETDIR)/add_simple_contacts.sql |
|
126 @echo $(TARGETDIR)/t_sqlshortnondb.db |
|
127 @echo $(TARGETDIR)/contacts_startup_time.sql |
|
128 @echo $(TARGETDIR)/t_inc095412.db |
|
129 @echo $(TARGETDIR2)/[21212122]aadb2.db |
|
130 @echo $(TARGETDIR2)/[21212122]bbdb2.db |
|
131 @echo $(TARGETDIR2)/[21212125]t_ab.db |
|
132 @echo $(TARGETDIR2)/[1111CCCC]t_ab.db |
|
133 @echo $(TARGETDIR2)/[21212125]t_onedefpolicy.db |
|
134 # @echo $(TARGETDIR2)/sqlserver.cfg |
|
135 @echo $(TARGETDIR3)/t_sqldb1.db |
|
136 @echo $(TARGETDIR2)/[98765432]t_2defaultpolicies.db |
|
137 @echo $(TARGETDIR2)/[98765432]t_emptysettings.db |
|
138 @echo $(TARGETDIR2)/[98765432]t_invobject.db |
|
139 @echo $(TARGETDIR2)/[98765432]t_invversion.db |
|
140 @echo $(TARGETDIR2)/[98765432]t_longcollation.db |
|
141 @echo $(TARGETDIR2)/[98765432]t_nocollation.db |
|
142 @echo $(TARGETDIR2)/[98765432]t_nodefaultpolicy.db |
|
143 @echo $(TARGETDIR2)/[98765432]t_nosettings.db |
|
144 @echo $(TARGETDIR)/default_avacon.dbSQL |
|
145 @echo $(TARGETDIR)/t_sqlbur_backup_ver0.bak |
|
146 @echo $(TARGETDIR)/t_sqlperformance4.sql |