toolsandutils/buildsystem/extension/syslibs/test/charconv_tsnmdata.mk
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 # Copyright (c) 1997-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 "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 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    17 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    18 
       
    19 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    20 
       
    21 ifeq ($(findstring WINS,$(PLATFORM)),WINS)
       
    22 	TARGET_DIRECTORY = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/charconv
       
    23 else
       
    24 	TARGET_DIRECTORY = $(EPOCROOT)epoc32/data/z/resource/charconv
       
    25 endif
       
    26 
       
    27 TARGET_FILES = $(TARGET_DIRECTORY)/tsnm.snm
       
    28 
       
    29 SOURCE_DIRECTORY = $(EXTENSION_ROOT)/../test/data/main
       
    30 
       
    31 TOOLS = \
       
    32 	$(EPOCROOT)epoc32/tools/PARSER.PM \
       
    33 	$(EPOCROOT)epoc32/tools/WRITER.PM \
       
    34 	$(EPOCROOT)epoc32/tools/snmtool.pl
       
    35 
       
    36 $(TARGET_DIRECTORY) :
       
    37 	$(call createdir,"$@")
       
    38 
       
    39 $(TARGET_FILES) : $(SOURCE_DIRECTORY)/tsnm.txt $(TOOLS)
       
    40 	perl $(EPOCROOT)epoc32/tools/snmtool.pl $(SOURCE_DIRECTORY)/tsnm.txt $@
       
    41 DO_NOTHING :
       
    42 	@echo do nothing
       
    43 	
       
    44 #
       
    45 # The targets invoked by bld...
       
    46 #
       
    47 
       
    48 MAKMAKE : DO_NOTHING
       
    49 
       
    50 BLD : $(TARGET_DIRECTORY) $(TARGET_FILES)
       
    51 
       
    52 SAVESPACE : BLD
       
    53 
       
    54 FREEZE : DO_NOTHING
       
    55 
       
    56 LIB : DO_NOTHING
       
    57 
       
    58 CLEANLIB : DO_NOTHING
       
    59 
       
    60 RESOURCE : DO_NOTHING
       
    61 
       
    62 CLEAN : 
       
    63 	-$(ERASE) $(TARGET_FILES)
       
    64 
       
    65 RELEASABLES : 
       
    66 	@echo $(TARGET_FILES)
       
    67 
       
    68 FINAL : DO_NOTHING