toolsandutils/buildsystem/extension/application-protocols/buildstubsis.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 # buildstubsis.mk - Build Stub 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/system/install
       
    28 
       
    29 ifeq ($(PLATFORM),WINS) 
       
    30 	TARGETDIR=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/system/install
       
    31 else
       
    32 ifeq ($(PLATFORM),WINSCW)
       
    33 	TARGETDIR=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/system/install
       
    34 endif
       
    35 endif
       
    36 
       
    37 $(TARGETDIR) :
       
    38 	$(call createdir,"$(TARGETDIR)") 
       
    39 
       
    40 # Build stub SIS file
       
    41 
       
    42 SISFILE= $(TARGETDIR)/$(SISNAME).sis
       
    43 
       
    44 $(SISFILE) : $(EXTENSION_ROOT)/$(SRCDIR)/$(SISNAME).pkg
       
    45 	$(EPOCROOT)epoc32/tools/makesis -s $? $@
       
    46 
       
    47 do_nothing :
       
    48 	echo 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)