The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Make utility - some Qs togurus.. alex_5161 SUN Solaris 0 01-30-2007 12:17 PM
Make utility bigmoon SUN Solaris 2 10-10-2005 08:48 PM
MAKE utility victorvvk High Level Programming 4 06-30-2005 09:23 AM
Make utility victorvvk High Level Programming 4 06-25-2005 12:40 AM
Using make utility to create an mini-app Yifan_Guo High Level Programming 1 03-19-2005 05:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2009
radiatejava radiatejava is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 16
How to print something in make utility

Hi want to know the syntax of printing something (value or variable) in GNU make utility. I give this in the Makefile:

echo "Hi"
OR
@echo "Hi"

But I only get error this when I run make (at the line where I have echo):
Makefile:9: *** missing separator. Stop.

Whats the problem? How can I print something ?
  #2 (permalink)  
Old 03-10-2009
mgessner mgessner is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 50
Printing in make

Actions occur in Makefiles as they are needed by dependencies.
If this is the case, make sure you have a TAB character at the front of the line.

test:
<tab>@echo "Hello"

should work just fine.
  #3 (permalink)  
Old 03-17-2009
anand_bh anand_bh is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 7
You have $(warning text) function in gmake.

$(warning This is a warning)

prints

This is a warning

to stderr.

You can have this anywhere, no condition of tab.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On



All times are GMT -4. The time now is 07:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0