javauis/eswt_qt/ui_mts_sis/Makefile
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:33:44 +0300
changeset 35 85266cc22c7f
permissions -rw-r--r--
Revision: v2.2.1 Kit: 2010123

#
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description:
#

# About signing certificates:
#	Used signing certificates can be given by specifying certificate 
#	directories with macro SIGNING_KEY_DIRS. Each .der file in the 
#	directories is used as certificate, and must be accompanied with
# 	a .key file having same basename. Directories must be specificed
#	using slashes as directory separator also in windows. Any path 
#	accessible by OS can be used, including windows share UNCs.

include $(JAVA_SRC_ROOT)/build/Makefile.defs

SISFILES = java_3_1.sis


all: $(SISFILES)

# Find signing certificates from SIGNING_KEY_DIR (*.der, each having .key file)
# Fix path to native separator
SIGNING_CERTS=$(call PATHFIX,$(wildcard $(addsuffix /*.der,$(SIGNING_KEY_DIRS))))

$(DEPLOYDIR)/% :: % 
	if not exist $(WINDEPLOYDIR) mkdir $(WINDEPLOYDIR)
	copy $< $(subst /,\,$@)

# Recreate the SIS files always
.phony: ALWAYS
.phony: all clean reallyclean


CPP_SIS_CMD = cpp -lang-asm -P -undef

%.sis: %.pkg ALWAYS
	$(CPP_SIS_CMD) $< $<.pkg
	makesis $<.pkg unsigned.$@
	copy unsigned.$@ $@
	echo Signing with $(SIGNING_CERTS) \
	$(foreach cert,$(SIGNING_CERTS), && signsis $@ $@ $(cert) $(basename $(cert)).key)
	del $<.pkg

clean:
	del *.sis* 2>NUL

reallyclean: clean