|
1 # Copyright (c) 2007-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 # template.mk |
|
15 # Build Word template files |
|
16 # |
|
17 # |
|
18 TMPROOT:=$(subst \,/,$(EPOCROOT)) |
|
19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/ |
|
20 |
|
21 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk |
|
22 |
|
23 ifeq ($(findstring WINS,$(PLATFORM)),WINS) |
|
24 TARGETDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/private/10003a64 |
|
25 else |
|
26 # The IBY file uses the template file stored here when building ROMs |
|
27 TARGETDIR = $(EPOCROOT)epoc32/data/z/private/10003a64 |
|
28 endif |
|
29 |
|
30 TEMPLATES = $(TARGETDIR)/blank |
|
31 |
|
32 $(TARGETDIR) : |
|
33 $(call createdir, "$@") |
|
34 |
|
35 # Well, actually just copy the prebuilt ones for now... |
|
36 # - deleting existing file first (in case it's read-only) |
|
37 |
|
38 TEMPLATESRCDIR = $(EXTENSION_ROOT)/../utemplat |
|
39 |
|
40 $(TEMPLATES) : $(TEMPLATESRCDIR)$/BLANK.UK $(TARGETDIR) |
|
41 $(call forceremove,$@) |
|
42 $(call forcecopy,$(TEMPLATESRCDIR)/BLANK.UK,"$@") |
|
43 DO_NOTHING : |
|
44 @echo do nothing |
|
45 |
|
46 # The targets invoked by bld... |
|
47 |
|
48 MAKMAKE : DO_NOTHING |
|
49 |
|
50 RESOURCE : DO_NOTHING |
|
51 |
|
52 SAVESPACE : BLD |
|
53 |
|
54 BLD : $(TARGETDIR) $(TEMPLATES) |
|
55 |
|
56 FREEZE : DO_NOTHING |
|
57 |
|
58 LIB : DO_NOTHING |
|
59 |
|
60 CLEANLIB : DO_NOTHING |
|
61 |
|
62 FINAL : DO_NOTHING |
|
63 |
|
64 CLEAN : |
|
65 -$(ERASE) $(TEMPLATES) |
|
66 |
|
67 RELEASABLES : |
|
68 @echo $(TEMPLATES) |