473,382 Members | 1,376 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,382 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 1524

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 :)
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.