LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2008, 01:17 AM   #1
91change
Member
 
Registered: Jul 2008
Posts: 42

Rep: Reputation: 15
Thumbs up Makefile ifeq not working


I have a Makefile


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



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

is not working .it gives an eero message "Missing seperator 1". second line is one tab right . waht could be the problem
 
Old 11-17-2008, 08:02 AM   #2
jtison
LQ Newbie
 
Registered: Dec 2005
Location: Connecticut, USA
Distribution: Fedora Cores 9, 10, 15, 17; SLES 10 & 11; RHEL 6.x
Posts: 18

Rep: Reputation: 0
Try a space between "ifeq" and your left parenthesis.
 
Old 11-21-2008, 12:34 AM   #3
91change
Member
 
Registered: Jul 2008
Posts: 42

Original Poster
Rep: Reputation: 15
it is not working
**********************

i tried to use if function ...then also it fails ,like below .



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

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

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


I dont know wher could be the problem , please guide me .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
automake, makefile, makefile.in and makefile.am Fond_of_Opensource Linux - Newbie 1 09-12-2006 09:35 PM
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 06:00 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 04:57 AM
Problem generating a working makefile from configure: MadCactus Linux - Software 0 08-20-2004 09:51 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 01:23 PM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration