help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do i write this using old gmake?


From: Rajanikanth T - TLS, Bangalore
Subject: How do i write this using old gmake?
Date: Mon, 10 Jul 2006 14:13:28 +0530

Hi all,

I am using old gmake which doesn’t support the new function $(if

Can some one tell me how can write the below piece of code without using $(if function.

 

>>>>>>>>>> Code Start >>>>>>>

# here I get local paths based on .c or .cxx files available

INC_DIR_LEVELS = inc */inc */*/inc */*/*/inc */*/*/*/inc

SRC_DIR_LEVELS = src */src */*/src */*/*/src */*/*/*/src

SRC_EXT = c cxx

INC_EXT = h hpp

CODEMGR_WSDATA = Codemgr_wsdata

 

ALL_LOCAL_SRC_PATHS = $(foreach DIR, $(SRC_DIR_LEVELS), $(wildcard $(LOCAL_BASE_DIR)/$(DIR)))

 

NO_CODEMGRS_SRC = $(foreach path, $(ALL_LOCAL_SRC_PATHS), \

                   $(if $(findstring $(CODEMGR_WSDATA),$(path)),,$(path)))

 

LOCAL_SRC_PATH += $(foreach path,$(NO_CODEMGRS_SRC), \

                   $(foreach ext,$(SRC_EXT), \

                    $(if $(findstring .$(ext),$(wildcard $(path)/*.$(ext))),$(path))))

 

<<<<<<<<<<<<<< Code End  <<<<<<<

 

Appreciate your help….

 

Thanks in advance,

Rajni

 

DISCLAIMER:
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]