sbsv1/buildsystem/extension/base/copy_default.mk
changeset 607 378360dbbdba
parent 599 fa7a3cc6effd
equal deleted inserted replaced
591:22486c9c7b15 607:378360dbbdba
       
     1 # Copyright (c) 1999-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 # To guarantee there is a slash at the end of EPOCROOT in case there is not.
       
    17 # This is needed to ensure compatibility with SBSv1. 
       
    18 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    20 
       
    21 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    22 
       
    23 
       
    24 SOURCE_COPY=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/$(SOURCES)
       
    25 TARGET_COPY=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/$(TARGET)
       
    26 
       
    27 $(TARGET_COPY) : $(SOURCE_COPY)
       
    28 	$(call cpfeature,"$(SOURCE_COPY)","$(TARGET_COPY)")
       
    29 #	perl $(EPOCROOT)epoc32/tools/copyfeaturevariants.pl "$(SOURCE_COPY)" "$(TARGET_COPY)"
       
    30 #	$(CP) "$?" "$@"
       
    31 
       
    32 #
       
    33 # The targets invoked by abld...
       
    34 #
       
    35 
       
    36 MAKMAKE BLD SAVESPACE FREEZE LIB CLEANLIB RESOURCE :
       
    37 	@echo Nothing to do for "$@"
       
    38 
       
    39 CLEAN : 
       
    40 	-$(ERASE) $(TARGET_COPY)
       
    41 
       
    42 RELEASABLES : 
       
    43 	@echo $(TARGET_COPY)
       
    44 
       
    45 # we have to wait until the SOURCE_COPY is built before we can copy it...
       
    46 #
       
    47 FINAL : $(TARGET_COPY)
       
    48