diff -r fa9d7d89d3d6 -r 68f68128601f sbsv1/buildsystem/extension/syslibs/fm_copyfile_to_winscw_zdrive.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv1/buildsystem/extension/syslibs/fm_copyfile_to_winscw_zdrive.mk Thu Nov 25 13:59:07 2010 +0000 @@ -0,0 +1,71 @@ +# Copyright (c) 2007-2009 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: +# fm_copyfiles_to_winscw_zdrive.mk +# Arguments to makefile are: +# option FILE_TO_COPY +# option SRC_PATH +# option DEST_PATH +# Job of the this makefile is to copy the specified file to +# the epoc32/release/winscw/CFG/z/... folder for the current config e.g. UREL or +# UDEB. +# +# + + +# To ensure that EPOCROOT always ends with a forward slash +TMPROOT:=$(subst \,/,$(EPOCROOT)) +EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/ + +include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk + + +SOURCE_FILE=$(SRC_PATH)/$(FILE_TO_COPY) +TARGET_DIR=$(EPOCROOT)epoc32/release/winscw/$(CFG_PATH)/$(DEST_PATH) +TARGET_FILE=$(TARGET_DIR)/$(FILE_TO_COPY) + +DO_NOTHING : + @echo do nothing + +$(TARGET_DIR) : + $(MKDIR) $(call slash2generic,$(TARGET_DIR)) + +# +# The targets invoked by abld... +# + +MAKMAKE : DO_NOTHING + +BLD : DO_NOTHING + +SAVESPACE : DO_NOTHING + +FREEZE : DO_NOTHING + +LIB : DO_NOTHING + +CLEANLIB : DO_NOTHING + +RESOURCE : DO_NOTHING + +CLEAN : + @echo Erasing $(call slash2generic,$(TARGET_FILE)) + -$(ERASE) $(call slash2generic,$(TARGET_FILE)) + +RELEASABLES : + @echo $(TARGET_FILE) + +FINAL : $(TARGET_DIR) + @echo Copying $(call slash2generic,$(SOURCE_FILE)) to $(call slash2generic,$(TARGET_FILE)) + $(CP) $(call slash2generic,$(SOURCE_FILE)) $(call slash2generic,$(TARGET_FILE)) +