602
|
1 |
# Copyright (c) 2005-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 the License "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 |
#
|
|
15 |
#
|
|
16 |
# Description:
|
|
17 |
# Extension Makefile for creating the CBR tools installable package
|
|
18 |
#
|
|
19 |
|
|
20 |
# Constants
|
|
21 |
TOOLS_DIR = $(EPOCROOT)tools
|
|
22 |
WORK_DIR = $(EPOCROOT)temp\cbr
|
|
23 |
SRC_DIR = ..\perl
|
|
24 |
CUR_DIR = $(shell chdir)
|
|
25 |
include version.mk
|
|
26 |
|
|
27 |
# Targets
|
|
28 |
|
|
29 |
do_nothing:
|
|
30 |
rem do_nothing
|
|
31 |
|
|
32 |
MAKMAKE : do_nothing
|
|
33 |
|
|
34 |
RESOURCE : do_nothing
|
|
35 |
|
|
36 |
FREEZE : do_nothing
|
|
37 |
|
|
38 |
SAVESPACE : BLD
|
|
39 |
|
|
40 |
LIB: do_nothing
|
|
41 |
|
|
42 |
RELEASABLES :
|
|
43 |
ifeq ("$(PLATFORM) $(CFG)", "TOOLS REL")
|
|
44 |
@echo $(TOOLS_DIR)\cbr\cbrtools$(VERSION).zip
|
|
45 |
endif
|
|
46 |
|
|
47 |
|
|
48 |
# remove jar file and class files
|
|
49 |
CLEAN :
|
|
50 |
ifeq ("$(PLATFORM) $(CFG)", "TOOLS REL")
|
|
51 |
-del $(TOOLS_DIR)\cbr\cbrtools$(VERSION).zip
|
|
52 |
-rmdir /s/q $(WORK_DIR)
|
|
53 |
endif
|
|
54 |
|
|
55 |
# Called with
|
|
56 |
#
|
|
57 |
# $(PLATFORM) = TOOLS
|
|
58 |
# $(CFG) = DEB, REL
|
|
59 |
|
|
60 |
# Note: DISTRIBUTION.POLICY files are only shipped with the example
|
|
61 |
|
|
62 |
BLD :
|
|
63 |
@echo BLD called with $(PLATFORM) $(CFG)
|
|
64 |
ifeq ("$(PLATFORM) $(CFG)", "TOOLS REL")
|
|
65 |
-rmdir /S/Q $(WORK_DIR)
|
|
66 |
-mkdir $(TOOLS_DIR)\cbr
|
|
67 |
-del $(TOOLS_DIR)\cbr\cbrtools$(VERSION).zip
|
|
68 |
-mkdir $(WORK_DIR)
|
|
69 |
xcopy /EI $(SRC_DIR) $(WORK_DIR)
|
|
70 |
cd $(WORK_DIR); zip -9r $(TOOLS_DIR)\cbr\cbrtools$(VERSION).zip *
|
|
71 |
-rmdir /S/Q $(WORK_DIR)
|
|
72 |
endif
|
|
73 |
|
|
74 |
FINAL : do_nothing
|