javaruntimes/midp/runtime/tsrc/javasrc/systemproperty/Makefile
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     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 include $(JAVA_SRC_ROOT)/build/Makefile.defs
       
    18 
       
    19 COMPONENTS = build
       
    20 
       
    21 include ${JAVA_SRC_ROOT}/build/Makefile.subsystem
       
    22 
       
    23 TEST_JAD=$(JAVA_SRC_ROOT)/javaruntimes/midp/midpruntime/tsrc/javasrc/systemproperty/build/runtimesystemproptests.jad
       
    24 TEST_JAR=$(JAVA_SRC_ROOT)/javaruntimes/midp/midpruntime/tsrc/javasrc/systemproperty/build/runtimesystemproptests.jar
       
    25 
       
    26 ifeq ($(OS),Windows_NT)
       
    27   UPDATE_JAD_CMD=if exist $(TEST_JAD) perl -i.bak -e "$$s=-s'$(TEST_JAR)';while(<>){if(/^MIDlet-Jar-Size:/){s/\d+/$$s/;}print;}" $(TEST_JAD)
       
    28 else
       
    29   UPDATE_JAD_CMD=if test -e $(TEST_JAD); then perl -i.bak -e "\$$s=-s'$(TEST_JAR)';while(<>){if(/^MIDlet-Jar-Size:/){s/\d+/\$$s/;}print;}" $(TEST_JAD); fi
       
    30 endif
       
    31 
       
    32 run: default_target
       
    33 	$(UPDATE_JAD_CMD)
       
    34 ifneq ($(OS),Windows_NT)
       
    35 	$(JAVA_BIN_ROOT)/bin/javainstaller install -jad=$(TEST_JAD)
       
    36 endif