releasing/cbrtools/group/build.mk
author jjkang
Wed, 30 Jun 2010 11:35:58 +0800
changeset 607 378360dbbdba
parent 602 3145852acc89
permissions -rw-r--r--
Merge missed changeset 11 (raptor v2.14 and helium 10.0)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
602
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     1
# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     2
# All rights reserved.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     3
# This component and the accompanying materials are made available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     5
# which accompanies this distribution, and is available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     7
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     8
# Initial Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    10
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    11
# Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    12
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    13
# Description:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    14
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    15
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    16
# Description:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    17
# Extension Makefile for creating the CBR tools installable package
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    18
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    19
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    20
# Constants
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    21
TOOLS_DIR = $(EPOCROOT)tools
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    22
WORK_DIR = $(EPOCROOT)temp\cbr
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    23
SRC_DIR = ..\perl
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    24
CUR_DIR = $(shell chdir)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    25
include version.mk
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    26
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    27
# Targets
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    28
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    29
do_nothing: 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    30
	rem do_nothing
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    31
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    32
MAKMAKE : do_nothing
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    33
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    34
RESOURCE : do_nothing
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    35
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    36
FREEZE : do_nothing
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    37
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    38
SAVESPACE : BLD
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    39
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    40
LIB: do_nothing
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    41
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    42
RELEASABLES :
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    43
ifeq ("$(PLATFORM) $(CFG)", "TOOLS REL")
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    44
	@echo $(TOOLS_DIR)\cbr\cbrtools$(VERSION).zip	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    45
endif
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    46
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    47
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    48
# remove jar file and class files
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    49
CLEAN :
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    50
ifeq ("$(PLATFORM) $(CFG)", "TOOLS REL")
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    51
	-del $(TOOLS_DIR)\cbr\cbrtools$(VERSION).zip	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    52
	-rmdir /s/q $(WORK_DIR)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    53
endif
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    54
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    55
# Called with
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    56
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    57
# $(PLATFORM) = TOOLS
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    58
# $(CFG)      = DEB, REL
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    59
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    60
# Note: DISTRIBUTION.POLICY files are only shipped with the example 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    61
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    62
BLD	:  
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    63
	@echo BLD called with $(PLATFORM) $(CFG)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    64
ifeq ("$(PLATFORM) $(CFG)", "TOOLS REL")
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    65
	-rmdir /S/Q $(WORK_DIR)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    66
	-mkdir $(TOOLS_DIR)\cbr
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    67
	-del $(TOOLS_DIR)\cbr\cbrtools$(VERSION).zip	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    68
	-mkdir $(WORK_DIR)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    69
	xcopy /EI $(SRC_DIR) $(WORK_DIR)	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    70
	cd $(WORK_DIR); zip -9r $(TOOLS_DIR)\cbr\cbrtools$(VERSION).zip *	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    71
	-rmdir /S/Q $(WORK_DIR)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    72
endif
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    73
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    74
FINAL : do_nothing