pnpmobileservices/pnpms/PnpPaosFilter/group/bld_paos_sis_stub.mk
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description:
       
    15 #
       
    16 #
       
    17 # Build a stub SIS file to go into ROM to allow installing an update.
       
    18 #
       
    19 
       
    20 ifeq (WINS,$(findstring WINS, $(PLATFORM)))
       
    21 INSTALLDIR=..\..\install\wins
       
    22 SISNAME=PnpPaos_S3-0_stub_winscw_udeb
       
    23 PKGNAME=PnpPaos_S3-0_stub_winscw_udeb
       
    24 else
       
    25 ifeq (UDEB,$(findstring UDEB, $(CFG)))
       
    26 INSTALLDIR=..\..\install\udeb
       
    27 SISNAME=PnpPaos_S3-0_stub_udeb
       
    28 PKGNAME=PnpPaos_S3-0_stub_udeb
       
    29 else
       
    30 INSTALLDIR=..\..\install
       
    31 SISNAME=PnpPaos_S3-0_stub
       
    32 PKGNAME=PnpPaos_S3-0_stub
       
    33 endif
       
    34 endif
       
    35 
       
    36 ifeq (WINS,$(findstring WINS, $(PLATFORM)))
       
    37 TARGETDIR=$(EPOCROOT)EPOC32\RELEASE\$(PLATFORM)\$(CFG)\Z\System\Install
       
    38 else
       
    39 TARGETDIR=$(EPOCROOT)EPOC32\Data\Z\System\Install
       
    40 endif
       
    41 
       
    42 $(TARGETDIR) :
       
    43 	@perl -S emkdir.pl "$(TARGETDIR)"
       
    44 
       
    45 do_nothing :
       
    46 	rem do_nothing
       
    47 
       
    48 SISFILE=$(TARGETDIR)\$(SISNAME).sis
       
    49 
       
    50 $(SISFILE) : $(INSTALLDIR)\$(PKGNAME).pkg
       
    51 	@echo "
       
    52 	@echo pkg-file: $? 
       
    53 	@echo sis-file: $@
       
    54 	@echo "
       
    55 	makesis -s $? $@ 
       
    56 
       
    57 #
       
    58 # The targets invoked by bld...
       
    59 #
       
    60 
       
    61 MAKMAKE : do_nothing
       
    62 
       
    63 RESOURCE : do_nothing
       
    64 
       
    65 SAVESPACE : do_nothing
       
    66 
       
    67 BLD :
       
    68 #Remove the old sis-files to allow creating new ones
       
    69 	-erase $(SISFILE)
       
    70 
       
    71 FREEZE : do_nothing
       
    72 
       
    73 LIB : do_nothing
       
    74 
       
    75 CLEANLIB : do_nothing
       
    76 
       
    77 FINAL : $(TARGETDIR) $(SISFILE)
       
    78 
       
    79 CLEAN : 
       
    80 	-erase $(SISFILE)
       
    81 
       
    82 RELEASABLES : 
       
    83 	@echo $(SISFILE)