sbsv1/buildsystem/extension/app-services/buildupgradesis.mk
changeset 599 fa7a3cc6effd
equal deleted inserted replaced
596:9f25be3da657 599:fa7a3cc6effd
       
     1 # Copyright (c) 2006-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 # Build Upgrade SIS file
       
    15 # 
       
    16 #
       
    17 
       
    18 # To ensure that EPOCROOT always ends with a forward slash
       
    19 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    20 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    21 
       
    22 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    23 
       
    24 
       
    25 # Select appropriate directory and ensure it exists
       
    26 
       
    27 TARGETDIR=$(EPOCROOT)epoc32/data/z/private/$(UID_DIR)
       
    28 ifeq ($(PLATFORM),WINS) 
       
    29         TARGETDIR=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/private/$(UID_DIR)
       
    30 else
       
    31 ifeq ($(PLATFORM),WINSCW)
       
    32         TARGETDIR=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/private/$(UID_DIR)
       
    33 endif
       
    34 endif
       
    35 
       
    36 $(TARGETDIR) :
       
    37 	@$(call createdir,"$(TARGETDIR)") 
       
    38 
       
    39 # Build stub SIS file
       
    40 
       
    41 SISFILE= $(TARGETDIR)/$(SISNAME).sis
       
    42 
       
    43 $(SISFILE) : $(EXTENSION_ROOT)/$(SRCDIR)/$(SISNAME).pkg
       
    44 	$(EPOCROOT)epoc32/tools/makesis -d$(EXTENSION_ROOT)/$(SRCDIR) $? $@
       
    45 
       
    46 
       
    47 do_nothing :
       
    48 # do_nothing
       
    49 
       
    50 # The targets invoked by abld
       
    51 
       
    52 MAKMAKE : do_nothing
       
    53 
       
    54 RESOURCE : $(TARGETDIR) $(SISFILE)
       
    55 
       
    56 SAVESPACE : BLD
       
    57 
       
    58 BLD : do_nothing
       
    59 
       
    60 FREEZE : do_nothing
       
    61 
       
    62 LIB : do_nothing
       
    63 
       
    64 CLEANLIB : do_nothing
       
    65 
       
    66 FINAL : do_nothing
       
    67 
       
    68 CLEAN :
       
    69 	-$(ERASE) $(SISFILE)
       
    70 
       
    71 RELEASABLES :
       
    72 	@echo $(SISFILE)