sl@0: # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: # All rights reserved. sl@0: # This component and the accompanying materials are made available sl@0: # under the terms of "Eclipse Public License v1.0" sl@0: # which accompanies this distribution, and is available sl@0: # at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: # sl@0: # Initial Contributors: sl@0: # Nokia Corporation - initial contribution. sl@0: # sl@0: # Contributors: sl@0: # sl@0: # Description: sl@0: # Build PDR files sl@0: # sl@0: # sl@0: sl@0: sl@0: # To ensure that EPOCROOT always ends with a forward slash sl@0: TMPROOT:=$(subst \,/,$(EPOCROOT)) sl@0: EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/ sl@0: sl@0: include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk sl@0: sl@0: sl@0: ifeq ($(PLATFORM),WINS) sl@0: TARGETDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/printers sl@0: else sl@0: ifeq ($(PLATFORM),WINSCW) sl@0: TARGETDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/printers sl@0: else sl@0: TARGETDIR:=$(EPOCROOT)epoc32/data/z/resource/printers sl@0: endif sl@0: endif sl@0: sl@0: $(TARGETDIR) : sl@0: $(call createdir,"$(TARGETDIR)") sl@0: sl@0: PDR=$(TARGETDIR)/$(PRINTER).pdr sl@0: sl@0: $(PDR) : $(EXTENSION_ROOT)/../$(PRINTER_DIR)/$(PRINTER).PD sl@0: $(EPOCROOT)epoc32/tools/pdrtran "$?" "$@" sl@0: sl@0: do_nothing: sl@0: # do nothing sl@0: sl@0: # sl@0: # The targets invoked by bld... sl@0: # sl@0: sl@0: MAKMAKE : do_nothing sl@0: sl@0: BLD : $(TARGETDIR) $(PDR) sl@0: sl@0: SAVESPACE : BLD sl@0: sl@0: RESOURCE : BLD sl@0: sl@0: CLEAN : sl@0: -$(ERASE) $(PDR) sl@0: sl@0: FREEZE : do_nothing sl@0: sl@0: LIB : do_nothing sl@0: sl@0: CLEANLIB : do_nothing sl@0: sl@0: FINAL : do_nothing sl@0: sl@0: RELEASABLES : sl@0: @echo $(PDR) sl@0: sl@0: