help in Makefile pls...

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2007
Posts: 61
Reputation: squinx22 is an unknown quantity at this point 
Solved Threads: 0
squinx22 squinx22 is offline Offline
Junior Poster in Training

help in Makefile pls...

 
0
  #1
May 24th, 2007
hi,
Is it possible to hide the build process in makefiles during the compilation and only display the echoes set?
for example:

all:
g++ -o foo foo.cpp
@echo 'building...'

If I type in make, the text display in the terminal would only be:

building...

How would I do this? Thanx in advance...
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 539
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

Re: help in Makefile pls...

 
0
  #2
May 24th, 2007
AFAIK you can put @ in front of any command. And it'll be supressed. To suppress it's output as well, redirect to /dev/null or a file.
Are you Agile.. ?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 843 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC