os/graphics/printingservices/printerdriversupport/tps/genpdrs.mk
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 # Copyright (c) 2006-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 # Build PDR files
    15 # 
    16 #
    17 
    18 
    19 # To ensure that EPOCROOT always ends with a forward slash
    20 TMPROOT:=$(subst \,/,$(EPOCROOT))
    21 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
    22 
    23 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
    24 
    25 
    26 ifeq ($(PLATFORM),WINS) 
    27         TARGETDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/printers
    28 else
    29 ifeq ($(PLATFORM),WINSCW)
    30         TARGETDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/printers
    31 else
    32         TARGETDIR:=$(EPOCROOT)epoc32/data/z/resource/printers
    33 endif
    34 endif
    35 
    36 $(TARGETDIR) :
    37 	$(call createdir,"$(TARGETDIR)")
    38 
    39 PDR=$(TARGETDIR)/$(PRINTER).pdr
    40 
    41 $(PDR) : $(EXTENSION_ROOT)/../$(PRINTER_DIR)/$(PRINTER).PD
    42 	$(EPOCROOT)epoc32/tools/pdrtran "$?" "$@"
    43 
    44 do_nothing:
    45 # do nothing
    46 
    47 #
    48 # The targets invoked by bld...
    49 #
    50 
    51 MAKMAKE : do_nothing
    52 
    53 BLD : $(TARGETDIR) $(PDR)
    54 
    55 SAVESPACE : BLD
    56 
    57 RESOURCE : BLD
    58 
    59 CLEAN :
    60 	-$(ERASE) $(PDR)
    61 
    62 FREEZE : do_nothing
    63 
    64 LIB : do_nothing
    65 
    66 CLEANLIB : do_nothing
    67 
    68 FINAL : do_nothing
    69 
    70 RELEASABLES : 
    71 	@echo $(PDR)
    72 
    73