Advertisement

11.20.2008 at 09:42PM PST, ID: 23924178 | Points: 125
[x]
Attachment Details

Makefile if linux

all these line are written in a file called animal.mk and is included in Makefile

**********Makefile ***************
include "animal.mk"


**********************************animal.mk *************
ifeq("rat",$CAT )
echo "not a cat" ;
endif



***********************

this is showing some error  ....
So , i tried with if function



*********animal.mk******************

$(if( $cat) ,echo "cat" , \
$(if($gone) , echo "gone" ,) ,)



Both are not working please help .
Top Expert: duncan_roe
Expert Since: 01/03/2004
Accepted Solutions: 832
Computer Expertise: Guru
duncan_roe has been an Expert for 5 years, during which he has posted 3177 comments and answered 832 questions. duncan_roe is just one of 413 experts in the Linux Programming Zone.
 
 
20081119-EE-VQP-48 - Hierarchy / EE_QW_2_20070628