toolsandutils/buildsystem/extension/syslibs/test/xml_xmlcmatchdatapostbuild.mk
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     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 #
       
    15 
       
    16 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    17 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    18 
       
    19 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    20 
       
    21 ifeq ($(OS), "Windows_NT")
       
    22 	RMDIR := @rmdir 2>>nul
       
    23 	@echo $(OS))
       
    24 else
       
    25 	RMDIR := @rmdir
       
    26 endif
       
    27 ifeq ($(findstring WINS,$(PLATFORM)),WINS)
       
    28 	TARGETDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/xmlramonly
       
    29 	SOURCEDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)
       
    30 	SOURCEDIR2 = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/plugins
       
    31 else
       
    32 	TARGETDIR = $(EPOCROOT)epoc32/data/z/xmlramonly
       
    33 	SOURCEDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)
       
    34 	SOURCEDIR2 = $(EPOCROOT)epoc32/data/z/resource/plugins
       
    35 endif
       
    36 
       
    37 # Ensure we have a clean canvas - this also avoids us having to specify
       
    38 # switches to commands that are not recognised across platforms.
       
    39 CLEAN_DEST :
       
    40 	$(call createdir,$(TARGETDIR))
       
    41 
       
    42 $(TARGETDIR) : 
       
    43 	$(call createdir,"$@")
       
    44 
       
    45 COPYFILES : CLEAN_DEST $(TARGETDIR)
       
    46 	$(CP) $(call slash2generic,$(SOURCEDIR)/tu_xmlramparserplugins.dll  $(TARGETDIR)/tu_xmlramparserplugins.dll)
       
    47 	$(CP) $(call slash2generic,$(SOURCEDIR2)/tu_xmlramparserplugins.RSC  $(TARGETDIR)/tu_xmlramparserplugins.rsc)
       
    48 	-$(ERASE) $(call slash2generic,$(SOURCEDIR)/tu_xmlramparserplugins.dll)
       
    49 	-$(ERASE) $(call slash2generic,$(SOURCEDIR2)/tu_xmlramparserplugins.rsc)
       
    50 
       
    51 DO_NOTHING:
       
    52 	@echo do nothing
       
    53 
       
    54 #
       
    55 # The targets invoked by bld...
       
    56 #
       
    57 
       
    58 MAKMAKE : DO_NOTHING
       
    59 
       
    60 RESOURCE : DO_NOTHING
       
    61 
       
    62 CLEAN :
       
    63 	$(call createdir,$(TARGETDIR))
       
    64 
       
    65 ifeq ($(PLATFORM), GCCXML)
       
    66 BLD : DO_NOTHING
       
    67 else
       
    68 BLD : COPYFILES
       
    69 endif
       
    70 
       
    71 SAVESPACE : DO_NOTHING
       
    72 
       
    73 FREEZE : DO_NOTHING
       
    74 
       
    75 LIB : DO_NOTHING
       
    76 
       
    77 CLEANLIB : DO_NOTHING
       
    78 
       
    79 RESOURCE : DO_NOTHING
       
    80 
       
    81 FINAL : DO_NOTHING
       
    82 
       
    83 RELEASABLES :
       
    84 	@echo $(TARGETDIR)/tu_xmlramparserplugins.dll
       
    85 	@echo $(TARGETDIR)/tu_xmlramparserplugins.rsc