vpnclient_sis/group/vpnclient_sis.mk
changeset 0 33413c0669b9
child 13 9fc0ed567871
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 #
       
     2 # Copyright (c) 2008-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:  Creates either localised or nonlocalised mVPN Client SIS files 
       
    15 #
       
    16 
       
    17 # To ensure that EPOCROOT always ends with a forward slash
       
    18 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    20 
       
    21 VERSION=091014
       
    22 RDDERDIR=../data/RDTest_02.der
       
    23 RDKEYDIR=../data/RDTest_02.key
       
    24 LOCALISATION_FILES=$(EPOCROOT)epoc32/data/Z/resource/vpnecomnotifier.r05
       
    25 S60PLATFORM=v42
       
    26 
       
    27 do_nothing :
       
    28 	@rem do_nothing
       
    29 
       
    30 MAKMAKE : do_nothing
       
    31 
       
    32 BLD :
       
    33 
       
    34 #
       
    35 # Localisation files must exist
       
    36 #
       
    37 	@echo --
       
    38 	if exist $(LOCALISATION_FILES) @echo Building localised version
       
    39 	if not exist $(LOCALISATION_FILES) @echo Localisation files are not available! Exiting..
       
    40 	if not exist $(LOCALISATION_FILES) @echo --
       
    41 	if not exist $(LOCALISATION_FILES) exit 1
       
    42 	@echo --
       
    43 
       
    44 #
       
    45 # vpn policy installer
       
    46 #
       
    47 	@echo Processing temp_nokia_vpn_vpnpolins_armv5.pkg
       
    48 	$(EPOCROOT)epoc32\tools\makesis -v temp_nokia_vpn_vpnpolins_armv5.pkg mVPN_vpnpolins_armv5.sis
       
    49 	@echo Signing created mVPN_vpnpolins_armv5.sis
       
    50 	$(EPOCROOT)epoc32\tools\signsis mVPN_vpnpolins_armv5.sis mVPN_vpnpolins_armv5.sis $(RDDERDIR) $(RDKEYDIR)
       
    51 	
       
    52 #
       
    53 # If localisation files exist create localised SIS files.
       
    54 #
       
    55 # UREL 
       
    56 	@echo Processing temp_nokia_vpn_client_localised_armv5_urel.pkg
       
    57 	$(EPOCROOT)epoc32\tools\makesis -v temp_nokia_vpn_client_localised_armv5_urel.pkg mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis
       
    58 	@echo Signing created mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis
       
    59 	$(EPOCROOT)epoc32\tools\signsis mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis $(RDDERDIR) $(RDKEYDIR)	
       
    60 # UDEB	
       
    61 	@echo Processing temp_nokia_vpn_client_localised_armv5_udeb.pkg
       
    62 	$(EPOCROOT)epoc32\tools\makesis -v temp_nokia_vpn_client_localised_armv5_udeb.pkg mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis
       
    63 	@echo Signing created mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis
       
    64 	$(EPOCROOT)epoc32\tools\signsis mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis $(RDDERDIR) $(RDKEYDIR)
       
    65 
       
    66 		    
       
    67 # remove policy installer
       
    68 	@echo Remove unnecessary temporary sis files
       
    69 	if exist mVPN_vpnpolins_armv5.sis erase mVPN_vpnpolins_armv5.sis
       
    70 	if exist temp_* erase temp_*
       
    71 	
       
    72 CLEAN : 
       
    73 	if exist mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis erase mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis
       
    74 	if exist mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis erase mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis
       
    75 	if exist mVPN_vpnpolins_armv5.sis erase mVPN_vpnpolins_armv5.sis
       
    76 	if exist temp_* erase temp_*
       
    77 	if exist *.BACKUP erase *.BACKUP
       
    78 	
       
    79 
       
    80 LIB : do_nothing
       
    81 
       
    82 CLEANLIB : do_nothing
       
    83 
       
    84 RESOURCE : do_nothing		
       
    85 		
       
    86 FREEZE : do_nothing
       
    87 
       
    88 SAVESPACE : do_nothing
       
    89 
       
    90 RELEASABLES : do_nothing
       
    91 
       
    92 FINAL : do_nothing