|
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 # fm_copyfiles_to_winscw_zdrive.mk |
|
15 # Arguments to makefile are: |
|
16 # option FILE_TO_COPY <src/dest_filename_without_any_path> |
|
17 # option SRC_PATH <epocroot_starting_path> |
|
18 # option DEST_PATH <emulator_zdrive_path_starting_with_a_z> |
|
19 # Job of the this makefile is to copy the specified file to |
|
20 # the epoc32/release/winscw/CFG/z/... folder for the current config e.g. UREL or |
|
21 # UDEB. |
|
22 # |
|
23 # |
|
24 |
|
25 |
|
26 # To ensure that EPOCROOT always ends with a forward slash |
|
27 TMPROOT:=$(subst \,/,$(EPOCROOT)) |
|
28 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/ |
|
29 |
|
30 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk |
|
31 |
|
32 |
|
33 SOURCE_FILE=$(SRC_PATH)/$(FILE_TO_COPY) |
|
34 TARGET_DIR=$(EPOCROOT)epoc32/release/winscw/$(CFG_PATH)/$(DEST_PATH) |
|
35 TARGET_FILE=$(TARGET_DIR)/$(FILE_TO_COPY) |
|
36 |
|
37 DO_NOTHING : |
|
38 @echo do nothing |
|
39 |
|
40 $(TARGET_DIR) : |
|
41 $(MKDIR) $(call slash2generic,$(TARGET_DIR)) |
|
42 |
|
43 # |
|
44 # The targets invoked by abld... |
|
45 # |
|
46 |
|
47 MAKMAKE : DO_NOTHING |
|
48 |
|
49 BLD : DO_NOTHING |
|
50 |
|
51 SAVESPACE : DO_NOTHING |
|
52 |
|
53 FREEZE : DO_NOTHING |
|
54 |
|
55 LIB : DO_NOTHING |
|
56 |
|
57 CLEANLIB : DO_NOTHING |
|
58 |
|
59 RESOURCE : DO_NOTHING |
|
60 |
|
61 CLEAN : |
|
62 @echo Erasing $(call slash2generic,$(TARGET_FILE)) |
|
63 -$(ERASE) $(call slash2generic,$(TARGET_FILE)) |
|
64 |
|
65 RELEASABLES : |
|
66 @echo $(TARGET_FILE) |
|
67 |
|
68 FINAL : $(TARGET_DIR) |
|
69 @echo Copying $(call slash2generic,$(SOURCE_FILE)) to $(call slash2generic,$(TARGET_FILE)) |
|
70 $(CP) $(call slash2generic,$(SOURCE_FILE)) $(call slash2generic,$(TARGET_FILE)) |
|
71 |