diff -r 6bcc0aa4be39 -r 889504eac4fb extension_makefiles/test/xml_xmlcmatchdatapostbuild.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extension_makefiles/test/xml_xmlcmatchdatapostbuild.mk Tue Aug 31 17:02:56 2010 +0300 @@ -0,0 +1,85 @@ +# Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +TMPROOT:=$(subst \,/,$(EPOCROOT)) +EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/ + +include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk + +ifeq ($(OS), "Windows_NT") + RMDIR := @rmdir 2>>nul + @echo $(OS)) +else + RMDIR := @rmdir +endif +ifeq ($(findstring WINS,$(PLATFORM)),WINS) + TARGETDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/xmlramonly + SOURCEDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH) + SOURCEDIR2 = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/plugins +else + TARGETDIR = $(EPOCROOT)epoc32/data/z/xmlramonly + SOURCEDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH) + SOURCEDIR2 = $(EPOCROOT)epoc32/data/z/resource/plugins +endif + +# Ensure we have a clean canvas - this also avoids us having to specify +# switches to commands that are not recognised across platforms. +CLEAN_DEST : + $(call createdir,$(TARGETDIR)) + +$(TARGETDIR) : + $(call createdir,"$@") + +COPYFILES : CLEAN_DEST $(TARGETDIR) + $(call forcecopy,$(SOURCEDIR)/tu_xmlramparserplugins.dll, $(TARGETDIR)/tu_xmlramparserplugins.dll) + $(call forcecopy,$(SOURCEDIR2)/tu_xmlramparserplugins.RSC, $(TARGETDIR)/tu_xmlramparserplugins.rsc) + +DO_NOTHING: + @echo do nothing + +# +# The targets invoked by bld... +# + +MAKMAKE : DO_NOTHING + +RESOURCE : DO_NOTHING + +CLEAN : + $(call createdir,$(TARGETDIR)) + -$(ERASE) $(call slash2generic,$(SOURCEDIR)/tu_xmlramparserplugins.dll) + -$(ERASE) $(call slash2generic,$(SOURCEDIR2)/tu_xmlramparserplugins.rsc) + +BLD : DO_NOTHING + +SAVESPACE : DO_NOTHING + +FREEZE : DO_NOTHING + +LIB : DO_NOTHING + +CLEANLIB : DO_NOTHING + +RESOURCE : DO_NOTHING + +ifeq ($(PLATFORM), GCCXML) +FINAL : DO_NOTHING +else +FINAL : COPYFILES +endif + +RELEASABLES : + @echo $(TARGETDIR)/tu_xmlramparserplugins.dll + @echo $(TARGETDIR)/tu_xmlramparserplugins.rsc