473,382 Members | 1,390 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.

Question about simple gmake Makefile

Hi,
VAR=hello
VAR=$(subst hello,bye,$(VAR))

print:
echo $(VAR)
sqocfms01:jdiaz:tmp>make print
Makefile:6: *** Recursive variable `VAR' references itself (eventually). Stop.

VAR=hello
VAR:=$(subst hello,bye,$(VAR))
^
print:
echo $(VAR)

sqocfms01:jdiaz:tmp>make print
echo bye
bye
Why the first Makefile is wrong ?

Thanks,
Jose Luis.
Jul 22 '05 #1
1 2344
jose luis fernandez diaz <jo**********************@yahoo.es> spoke thus:
Why the first Makefile is wrong ?


Your post is off-topic for comp.lang.c++. Please visit

http://www.slack.net/~shiva/welcome.txt
http://www.parashift.com/c++-faq-lite/

for posting guidelines and frequently asked questions. Thank you.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Li Daobing | last post by:
I can't use .def(str(self)) I write a simple example, without `str', I can build it well, but with this one, I can't build //Rational.cpp #include <boost/python.hpp> #include <iostream> ...
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: 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...
2
by: mrstephengross | last post by:
I'm working with the freeze utility, and I'm trying to learn the basics. For the most part, I think I understand how it works. I have a question about modules, though. I want to make sure that...
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: oldfarts | last post by:
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...
8
by: xz | last post by:
I am a rookie of C++ and got so confused with the Makefile these days. Could anyone be so kind and give a little sample Makefile for the following particular example? Let's say I have the...
1
by: psiddhu | last post by:
Hi All, I am not able to run gmake in system command. I get the following output sh: gmake: not found but, if I run the command directly, it run fine. Let me know if anyone has...
3
by: Ashik | last post by:
I have a simple compilation question, but I haven't been able to find an answer for it anywhere online. I've made a simplified version of my problem using a few files. The main problem is that...
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.