473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

I have makefile gmake question

THere is no listed catagory for gmake, so I just guessed here is where I go.

I have tried a bunch of combination or ifeq,ifneq, and ifdef on make file defined variables and I cannot get any switch to work.
I used, what I thought was every combination of paren's and quotes for
my conditional comparison, and I get some kind of error message on them all.


A make file example:

test = "tom"

all: testmake

.PHONY testmake:
ifeq ($(test),"tom")
@echo "this doesn't work
endif




OR.....................

.PHONY testmake:
ifeq ("$(test)", "tom") OR... ifeq $test "tom" OR ... ifeq ($(tom), $(tom))




Man, nothing works...
I get either syntax error or ifeq not found when I run gmake
?????
WHat am i doing wrong?
Jun 21 '07 #1
0 1526

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Efrat Regev | last post by:
Hello, I'd like to ask a question concerning a python script in a makefile. Suppose I have a C++ project (sorry for raising this in a Python newsgroup), with some makefile for it. Before...
1
by: jose luis fernandez diaz | last post by:
Hi, VAR=hello VAR=$(subst hello,bye,$(VAR)) print: echo $(VAR)
2
by: Thomas | last post by:
how to use gmake?
4
by: chenqy2004 | last post by:
I used to code in unix. Now I need to run them in Visual C++. But I don't know how to change the makefile so that it will work for visual c++. Can anyone help me out?
1
by: Carson | last post by:
Hi, I have a problem with Makefile. I have a piece of c code, which is stored in my unix account. I wrote a Makefile for that particular compilation (using gcc), and it works fine. But...
9
by: silversurfer | last post by:
Hello world, I was just wondering why the clear-line in my Makefile does not work: main:main.o $(ADDOBJS) clear @g++ -o main $(LDFLAGS) $+ As far as I understood it, it should be possible to...
3
by: prasadjoshi124 | last post by:
Hi All, I am trying to write a make file with the following specifications. $ pwd /home/Prasad/programs/c/lsp/dir_make $ ls add include main.c Makefile sub
1
by: oldfarts | last post by:
I am trying to put some conditional in my makefile and I have tried every combination in the public gmake manual.. Why does this not work and if it is wrong how DO I do a conditional that would...
0
by: agvaniya | last post by:
Hi, perhaps someone knows a way to converts Borland makefile to GNU format ? (So it could be run with gmake/make instead of Borland's make -f <file> ) Thanks :)
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.