OpenSolaris Solaris Forum  
     

Left Nav Register FAQ Members List Default Password Members List Linux Commands Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container
 

Go Back   OpenSolaris Solaris Forum » Solaris General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-2011, 09:03 AM
Junior Member
 
Join Date: Jan 2011
Posts: 1
Default Setting/Modifying variable specific to target in Makefile

Hi,

I have a small piece of Makefile script which throw's error on Sun Sparc machine, but works fine with Sun Optron, Linux, AIX machines.

================================
FOO=Naveen
test1:FOO=Dhilip

test1:
@echo FOO is ${FOO}

test2:
@echo Me is ${FOO}
================================

Output on Sun Sparc -
==================
ukhml-v890new-~/test: make test1
make: *** No rule to make target `FOO=Dhilip', needed by `test1'. Stop.

Output on Sun Optron -
==================

ukhml-helios-~/shivtest: make test1
FOO is Dhilip


Anyone has an idea, why this syntax error thrown on Sun Sparc ?

Regards.,
Naveen Sriram.
Reply With Quote
Sponsored Links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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 On



All times are GMT. The time now is 01:57 PM.


Powered by vBulletin. Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.