os/persistentdata/persistentstorage/centralrepository/pccenrep/group/centrep_copypctestfilev2.mk
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 # Copyright (c) 2008-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 # centrep_copypctestfile.mk
    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 	EPOCDATADIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)
    25 else
    26 	EPOCDATADIR = $(EPOCROOT)epoc32/data
    27 endif
    28 
    29 SECURETARGETDIR = $(EPOCDATADIR)/z/private/10202BE9
    30 
    31 PCCENREPSOURCE = $(EXTENSION_ROOT)/../test
    32 PCCENREPDATADIR = $(EPOCROOT)epoc32/winscw/c/private/00000000
    33 PCCENREPTESTDIR = $(EPOCROOT)epoc32/winscw/c
    34 PCCENREPPCTESTDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)
    35 
    36 $(SECURETARGETDIR) :
    37 	$(call createdir, "$@")
    38 
    39 $(PCCENREPDATADIR) :
    40 	$(call createdir, "$@")
    41 
    42 COPYFILES :
    43 ifneq ($(findstring TOOLS2,$(PLATFORM)),TOOLS2)
    44 	$(call forcecopy,$(PCCENREPSOURCE)/000001ff.txt,$(SECURETARGETDIR)/000001ff.txt)
    45 	$(call forcecopy,$(PCCENREPSOURCE)/00001fff.crev2,$(SECURETARGETDIR)/00001fff.cre)
    46 	$(call forcecopy,$(PCCENREPSOURCE)/000002ff.crev2,$(SECURETARGETDIR)/000002ff.cre)
    47 	$(call forcecopy,$(PCCENREPSOURCE)/88888880.txt,$(SECURETARGETDIR)/88888880.txt)
    48 	$(call forcecopy,$(PCCENREPSOURCE)/88888881.cre,$(SECURETARGETDIR)/88888881.cre)
    49 	$(call forcecopy,$(PCCENREPSOURCE)/00004fff.cre,$(SECURETARGETDIR)/00004fff.cre)
    50 	$(call forcecopy,$(PCCENREPSOURCE)/00022222.txt,$(SECURETARGETDIR)/00022222.txt)
    51 
    52 ifeq ($(findstring WINS,$(PLATFORM)),WINS)	
    53 	$(call forcecopy,$(PCCENREPSOURCE)/000001ff.txt,$(PCCENREPDATADIR)/000001ff.txt)
    54 	$(call forcecopy,$(PCCENREPSOURCE)/00001fff.crev2,$(PCCENREPDATADIR)/00001fff.cre)
    55 	$(call forcecopy,$(PCCENREPSOURCE)/000002ff.crev2,$(PCCENREPDATADIR)/000002ff.cre)
    56 	$(call forcecopy,$(PCCENREPSOURCE)/88888880.txt,$(PCCENREPDATADIR)/88888880.txt)
    57 	$(call forcecopy,$(PCCENREPSOURCE)/88888881.cre,$(PCCENREPDATADIR)/88888881.cre)
    58 	$(call forcecopy,$(PCCENREPSOURCE)/winscwcre.crev2,$(PCCENREPDATADIR)/ref_winscwcre.cre)
    59 	$(call forcecopy,$(PCCENREPSOURCE)/winscwtxt.crev2,$(PCCENREPDATADIR)/ref_winscwtxt.cre)
    60 	$(call forcecopy,$(PCCENREPSOURCE)/000001ff.txt,$(PCCENREPDATADIR)/copy000001ff.txt)
    61 	$(call forcecopy,$(PCCENREPSOURCE)/00001fff.crev2,$(PCCENREPDATADIR)/copy00001fff.cre)
    62 	$(call forcecopy,$(PCCENREPSOURCE)/000002ff.crev2,$(PCCENREPDATADIR)/copy000002ff.cre)
    63 	$(call forcecopy,$(PCCENREPSOURCE)/00004fff.cre,$(PCCENREPDATADIR)/00004fff.cre)
    64 	$(call forcecopy,$(PCCENREPSOURCE)/00004fff.cre,$(PCCENREPDATADIR)/copy00004fff.cre)
    65 	$(call forcecopy,$(PCCENREPSOURCE)/00022222.txt,$(PCCENREPDATADIR)/00022222.txt)
    66 	$(call forcecopy,$(PCCENREPSOURCE)/00022222.crev2,$(PCCENREPDATADIR)/copy00022222.cre)
    67 	$(call forcecopy,$(PCCENREPSOURCE)/000001ff.txt,$(PCCENREPTESTDIR)/000001ff.txt)
    68 	$(call forcecopy,$(PCCENREPSOURCE)/00001fff.crev2,$(PCCENREPTESTDIR)/00001fff.cre)
    69 	$(call forcecopy,$(PCCENREPSOURCE)/00001fff.crev2,$(PCCENREPTESTDIR)/copy00001fff.cre)
    70 	$(call forcecopy,$(PCCENREPSOURCE)/00004fff.cre,$(PCCENREPTESTDIR)/00004fff.cre)
    71 	$(call forcecopy,$(PCCENREPSOURCE)/00004fff.cre,$(PCCENREPTESTDIR)/copy00004fff.cre)
    72 	$(call forcecopy,$(PCCENREPSOURCE)/00022222.txt,$(PCCENREPTESTDIR)/00022222.txt)
    73 	$(call forcecopy,$(PCCENREPSOURCE)/00022222.crev2,$(PCCENREPTESTDIR)/copy00022222.cre)
    74 # Shared files between the t_cenreppc (WINSCW) and testsymcenrep (TOOLS2) tests.
    75 	$(call forcecopy,$(PCCENREPSOURCE)/common_crc.txt,$(PCCENREPTESTDIR)/common_crc.txt)
    76 	$(call forcecopy,$(PCCENREPSOURCE)/common_ref_00022222.cre,$(PCCENREPDATADIR)/common_ref_00022222.cre)
    77 endif
    78 
    79 # TOOLS2
    80 else
    81 	$(call forcecopy,$(PCCENREPSOURCE)/000001ff.txt,$(PCCENREPPCTESTDIR)/000001ff.txt)
    82 	$(call forcecopy,$(PCCENREPSOURCE)/00001fff.crev2,$(PCCENREPPCTESTDIR)/00001fff.cre)
    83 	$(call forcecopy,$(PCCENREPSOURCE)/00004fff.cre,$(PCCENREPPCTESTDIR)/00004fff.cre)
    84 	$(call forcecopy,$(PCCENREPSOURCE)/000001ff.txt,$(PCCENREPPCTESTDIR)/copy000001ff.txt)
    85 	$(call forcecopy,$(PCCENREPSOURCE)/00001fff.crev2,$(PCCENREPPCTESTDIR)/copy00001fff.cre)
    86 	$(call forcecopy,$(PCCENREPSOURCE)/00004fff.cre,$(PCCENREPPCTESTDIR)/copy00004fff.cre)
    87 	$(call forcecopy,$(PCCENREPSOURCE)/000002ff.crev2,$(PCCENREPPCTESTDIR)/000002ff.cre)
    88 	$(call forcecopy,$(PCCENREPSOURCE)/000002ff.crev2,$(PCCENREPPCTESTDIR)/copy000002ff.cre)
    89 	$(call forcecopy,$(PCCENREPSOURCE)/winscwcre.crev2,$(PCCENREPPCTESTDIR)/ref_winscwcre.cre)
    90 	$(call forcecopy,$(PCCENREPSOURCE)/winscwtxt.crev2,$(PCCENREPPCTESTDIR)/ref_winscwtxt.cre)
    91 	$(call forcecopy,$(PCCENREPSOURCE)/88888880.txt,$(PCCENREPPCTESTDIR)/88888880.txt)
    92 	$(call forcecopy,$(PCCENREPSOURCE)/88888881.cre,$(PCCENREPPCTESTDIR)/88888881.cre)
    93 	$(call forcecopy,$(PCCENREPSOURCE)/00022222.txt,$(PCCENREPPCTESTDIR)/00022222.txt)
    94 	$(call forcecopy,$(PCCENREPSOURCE)/00022222.crev2,$(PCCENREPPCTESTDIR)/copy00022222.cre)
    95 # Shared files between the t_cenreppc (WINSCW) and testsymcenrep (TOOLS2) tests.
    96 	$(call forcecopy,$(PCCENREPSOURCE)/common_crc.txt,$(PCCENREPTESTDIR)/common_crc.txt)
    97 	$(call forcecopy,$(PCCENREPSOURCE)/common_ref_00022222.cre,$(PCCENREPDATADIR)/common_ref_00022222.cre)
    98 endif
    99 
   100 DO_NOTHING:
   101 	@echo do nothing
   102 
   103 #
   104 # The targets invoked by bld...
   105 #
   106 
   107 BLD : $(SECURETARGETDIR) $(PCCENREPDATADIR) $(PCCENREPTESTDIR) $(PCCENREPSOURCE) $(PCCENREPPCTESTDIR) COPYFILES
   108 
   109 CLEAN :
   110 
   111 ifneq ($(findstring TOOLS2,$(PLATFORM)),TOOLS2)
   112 	$(call forceremove,$(SECURETARGETDIR)/000001ff.txt)
   113 	$(call forceremove,$(SECURETARGETDIR)/00001fff.cre)
   114 	$(call forceremove,$(SECURETARGETDIR)/000002ff.cre)
   115 	$(call forceremove,$(SECURETARGETDIR)/88888880.txt)
   116 	$(call forceremove,$(SECURETARGETDIR)/88888881.cre)
   117 	$(call forceremove,$(SECURETARGETDIR)/00004fff.cre)
   118 	$(call forceremove,$(SECURETARGETDIR)/00022222.txt)
   119 
   120 ifeq ($(findstring WINS,$(PLATFORM)),WINS)
   121 	$(call forceremove,$(PCCENREPDATADIR)/000001ff.txt)
   122 	$(call forceremove,$(PCCENREPDATADIR)/00001fff.cre)
   123 	$(call forceremove,$(PCCENREPDATADIR)/000002ff.cre)
   124 	$(call forceremove,$(PCCENREPDATADIR)/88888880.txt)
   125 	$(call forceremove,$(PCCENREPDATADIR)/88888881.cre)
   126 	$(call forceremove,$(PCCENREPDATADIR)/ref_winscwcre.cre)
   127 	$(call forceremove,$(PCCENREPDATADIR)/ref_winscwtxt.cre)
   128 	$(call forceremove,$(PCCENREPDATADIR)/copy000001ff.txt)
   129 	$(call forceremove,$(PCCENREPDATADIR)/copy00001fff.cre)
   130 	$(call forceremove,$(PCCENREPDATADIR)/copy000002ff.cre)
   131 	$(call forceremove,$(PCCENREPDATADIR)/00004fff.cre)
   132 	$(call forceremove,$(PCCENREPDATADIR)/copy00004fff.cre)
   133 	$(call forceremove,$(PCCENREPDATADIR)/00022222.txt)
   134 	$(call forceremove,$(PCCENREPDATADIR)/copy00022222.cre)
   135 	$(call forceremove,$(PCCENREPTESTDIR)/000001ff.txt)
   136 	$(call forceremove,$(PCCENREPTESTDIR)/00001fff.cre)
   137 	$(call forceremove,$(PCCENREPTESTDIR)/copy00001fff.cre)
   138 	$(call forceremove,$(PCCENREPTESTDIR)/00004fff.cre)
   139 	$(call forceremove,$(PCCENREPTESTDIR)/copy00004fff.cre)
   140 	$(call forceremove,$(PCCENREPTESTDIR)/00022222.txt)
   141 	$(call forceremove,$(PCCENREPTESTDIR)/copy00022222.cre)
   142 	$(call forceremove,$(PCCENREPTESTDIR)/common_crc.txt)
   143 	$(call forceremove,$(PCCENREPDATADIR)/common_ref_00022222.cre)
   144 endif
   145 
   146 
   147 # TOOLS2
   148 else
   149 	$(call forceremove,$(PCCENREPPCTESTDIR)/000001ff.txt)
   150 	$(call forceremove,$(PCCENREPPCTESTDIR)/00001fff.cre)
   151 	$(call forceremove,$(PCCENREPPCTESTDIR)/00004fff.cre)
   152 	$(call forceremove,$(PCCENREPPCTESTDIR)/copy000001ff.txt)
   153 	$(call forceremove,$(PCCENREPPCTESTDIR)/copy00001fff.cre)
   154 	$(call forceremove,$(PCCENREPPCTESTDIR)/000002ff.cre)
   155 	$(call forceremove,$(PCCENREPPCTESTDIR)/copy000002ff.cre)
   156 	$(call forceremove,$(PCCENREPPCTESTDIR)/ref_winscwcre.cre)
   157 	$(call forceremove,$(PCCENREPPCTESTDIR)/ref_winscwtxt.cre)
   158 	$(call forceremove,$(PCCENREPPCTESTDIR)/88888880.txt)
   159 	$(call forceremove,$(PCCENREPPCTESTDIR)/88888881.cre)
   160 	$(call forceremove,$(PCCENREPPCTESTDIR)/00022222.txt)
   161 	$(call forceremove,$(PCCENREPPCTESTDIR)/copy00022222.cre)
   162 	$(call forceremove,$(PCCENREPPCTESTDIR)/copy00004fff.cre)
   163 	$(call forceremove,$(PCCENREPTESTDIR)/common_crc.txt)
   164 	$(call forceremove,$(PCCENREPDATADIR)/common_ref_00022222.cre)
   165 
   166 endif
   167 
   168 RELEASABLES :
   169 ifneq ($(findstring TOOLS2,$(PLATFORM)),TOOLS2)
   170 	@echo $(SECURETARGETDIR)/000001ff.txt
   171 	@echo $(SECURETARGETDIR)/00001fff.cre
   172 	@echo $(SECURETARGETDIR)/000002ff.cre
   173 	@echo $(SECURETARGETDIR)/88888880.txt
   174 	@echo $(SECURETARGETDIR)/88888881.cre
   175 	@echo $(SECURETARGETDIR)/00004fff.cre
   176 	@echo $(SECURETARGETDIR)/00022222.txt
   177 
   178 ifeq ($(findstring WINS,$(PLATFORM)),WINS)
   179 	@echo $(PCCENREPDATADIR)/000001ff.txt
   180 	@echo $(PCCENREPDATADIR)/00001fff.cre
   181 	@echo $(PCCENREPDATADIR)/000002ff.cre
   182 	@echo $(PCCENREPDATADIR)/88888880.txt
   183 	@echo $(PCCENREPDATADIR)/88888881.cre
   184 	@echo $(PCCENREPDATADIR)/ref_winscwcre.cre
   185 	@echo $(PCCENREPDATADIR)/ref_winscwtxt.cre
   186 	@echo $(PCCENREPDATADIR)/copy000001ff.txt
   187 	@echo $(PCCENREPDATADIR)/copy00001fff.cre
   188 	@echo $(PCCENREPDATADIR)/copy000002ff.cre
   189 	@echo $(PCCENREPDATADIR)/00004fff.cre
   190 	@echo $(PCCENREPDATADIR)/copy00004fff.cre
   191 	@echo $(PCCENREPDATADIR)/00022222.txt
   192 	@echo $(PCCENREPDATADIR)/copy00022222.cre
   193 	@echo $(PCCENREPTESTDIR)/000001ff.txt
   194 	@echo $(PCCENREPTESTDIR)/00001fff.cre
   195 	@echo $(PCCENREPTESTDIR)/copy00001fff.cre
   196 	@echo $(PCCENREPTESTDIR)/00004fff.cre
   197 	@echo $(PCCENREPTESTDIR)/copy00004fff.cre
   198 	@echo $(PCCENREPTESTDIR)/00022222.txt
   199 	@echo $(PCCENREPTESTDIR)/copy00022222.cre
   200 	@echo $(PCCENREPTESTDIR)/common_crc.txt
   201 	@echo $(PCCENREPDATADIR)/common_ref_00022222.cre
   202 endif
   203 
   204 # TOOLS2
   205 else 
   206 	@echo $(PCCENREPPCTESTDIR)/000001ff.txt
   207 	@echo $(PCCENREPPCTESTDIR)/00001fff.cre
   208 	@echo $(PCCENREPPCTESTDIR)/copy000001ff.txt
   209 	@echo $(PCCENREPPCTESTDIR)/copy00001fff.cre
   210 	@echo $(PCCENREPPCTESTDIR)/000002ff.cre
   211 	@echo $(PCCENREPPCTESTDIR)/copy000002ff.cre
   212 	@echo $(PCCENREPPCTESTDIR)/ref_winscwcre.cre
   213 	@echo $(PCCENREPPCTESTDIR)/ref_winscwtxt.cre
   214 	@echo $(PCCENREPPCTESTDIR)/88888880.txt
   215 	@echo $(PCCENREPPCTESTDIR)/88888881.cre
   216 	@echo $(PCCENREPPCTESTDIR)/00022222.txt
   217 	@echo $(PCCENREPPCTESTDIR)/copy00022222.cre
   218 	@echo $(PCCENREPPCTESTDIR)/copy00004fff.cre
   219 	@echo $(PCCENREPTESTDIR)/common_crc.txt
   220 	@echo $(PCCENREPDATADIR)/common_ref_00022222.cre
   221 
   222 endif
   223 
   224 MAKMAKE : DO_NOTHING
   225 
   226 RESOURCE : DO_NOTHING
   227 
   228 SAVESPACE : DO_NOTHING
   229 
   230 FREEZE : DO_NOTHING
   231 
   232 LIB : DO_NOTHING
   233 
   234 CLEANLIB : DO_NOTHING
   235 
   236 FINAL : DO_NOTHING
   237 
   238 ROMFILE : DO_NOTHING