Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Question about simple gmake Makefile

Reply
Thread Tools

Question about simple gmake Makefile

 
 
jose luis fernandez diaz
Guest
Posts: n/a
 
      04-29-2004
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.
 
Reply With Quote
 
 
 
 
Christopher Benson-Manica
Guest
Posts: n/a
 
      04-29-2004
jose luis fernandez diaz <> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gmake flags to set a 32 bit environment Esash C Programming 2 12-05-2012 12:48 PM
gmake error: No rule to make target lib_file.a D3|\\||\\|!$ C++ 1 05-03-2008 06:50 AM
gmake =?ISO-8859-1?Q?Andreas_R=F8sdal?= C++ 1 01-03-2006 11:33 AM
how to use gmake? Thomas C Programming 2 04-26-2005 04:03 AM
packaging: perl-5.8.2 on Solaris: gmake[3]: [extras.make] Error 1 (ignored) Thomas Glanzmann Perl Misc 0 01-08-2004 07:52 AM



Advertisments