srctools/cmaker/src/functions.mk
changeset 1 be27ed110b50
child 598 0a541d1f13c3
equal deleted inserted replaced
0:044383f39525 1:be27ed110b50
       
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of the License "Symbian Foundation License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description:
       
    15 # Actions that can be executed
       
    16 #
       
    17 
       
    18 # default action 
       
    19 ACTION=export
       
    20 
       
    21 ifeq ($(ACTION),what)
       
    22   PHONY_ACT = 1
       
    23   FUNCTION  = $(PRINT) "$@" 
       
    24 endif
       
    25 ifeq ($(ACTION),what_deps)
       
    26   PHONY_ACT = 1
       
    27   FUNCTION  = $(PRINT) "$<" "$@" 
       
    28 endif
       
    29 ifeq ($(ACTION),export)
       
    30   FUNCTION = $(COPY) "$<" "$@"
       
    31 endif
       
    32 ifeq ($(ACTION),clean)
       
    33   PHONY_ACT = 1
       
    34   FUNCTION = $(ERASE) "$@"
       
    35 endif