graphicsutils/graphics_tems/src/genpdrs.mk
author hgs
Wed, 25 Aug 2010 08:17:25 +0300
changeset 160 969102054596
permissions -rw-r--r--
201032
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
160
hgs
parents:
diff changeset
     1
# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     2
# All rights reserved.
hgs
parents:
diff changeset
     3
# This component and the accompanying materials are made available
hgs
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     5
# which accompanies this distribution, and is available
hgs
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     7
#
hgs
parents:
diff changeset
     8
# Initial Contributors:
hgs
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
#
hgs
parents:
diff changeset
    11
# Contributors:
hgs
parents:
diff changeset
    12
#
hgs
parents:
diff changeset
    13
# Description:
hgs
parents:
diff changeset
    14
# Build PDR files
hgs
parents:
diff changeset
    15
# 
hgs
parents:
diff changeset
    16
#
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
# To ensure that EPOCROOT always ends with a forward slash
hgs
parents:
diff changeset
    20
TMPROOT:=$(subst \,/,$(EPOCROOT))
hgs
parents:
diff changeset
    21
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
ifeq ($(PLATFORM),WINS) 
hgs
parents:
diff changeset
    27
        TARGETDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/printers
hgs
parents:
diff changeset
    28
else
hgs
parents:
diff changeset
    29
ifeq ($(PLATFORM),WINSCW)
hgs
parents:
diff changeset
    30
        TARGETDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/printers
hgs
parents:
diff changeset
    31
else
hgs
parents:
diff changeset
    32
        TARGETDIR:=$(EPOCROOT)epoc32/data/z/resource/printers
hgs
parents:
diff changeset
    33
endif
hgs
parents:
diff changeset
    34
endif
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
$(TARGETDIR) :
hgs
parents:
diff changeset
    37
	$(call createdir,"$(TARGETDIR)")
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
PDR=$(TARGETDIR)/$(PRINTER).pdr
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
$(PDR) : $(EXTENSION_ROOT)/../$(PRINTER_DIR)/$(PRINTER).PD
hgs
parents:
diff changeset
    42
	$(EPOCROOT)epoc32/tools/pdrtran '$<' '$@'
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
do_nothing:
hgs
parents:
diff changeset
    45
# do nothing
hgs
parents:
diff changeset
    46
hgs
parents:
diff changeset
    47
#
hgs
parents:
diff changeset
    48
# The targets invoked by bld...
hgs
parents:
diff changeset
    49
#
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
MAKMAKE : do_nothing
hgs
parents:
diff changeset
    52
hgs
parents:
diff changeset
    53
BLD : $(TARGETDIR) $(PDR)
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
SAVESPACE : BLD
hgs
parents:
diff changeset
    56
hgs
parents:
diff changeset
    57
RESOURCE : BLD
hgs
parents:
diff changeset
    58
hgs
parents:
diff changeset
    59
CLEAN :
hgs
parents:
diff changeset
    60
	-$(ERASE) $(PDR)
hgs
parents:
diff changeset
    61
hgs
parents:
diff changeset
    62
FREEZE : do_nothing
hgs
parents:
diff changeset
    63
hgs
parents:
diff changeset
    64
LIB : do_nothing
hgs
parents:
diff changeset
    65
hgs
parents:
diff changeset
    66
CLEANLIB : do_nothing
hgs
parents:
diff changeset
    67
hgs
parents:
diff changeset
    68
FINAL : do_nothing
hgs
parents:
diff changeset
    69
hgs
parents:
diff changeset
    70
RELEASABLES : 
hgs
parents:
diff changeset
    71
	@echo $(PDR)
hgs
parents:
diff changeset
    72