944,028 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1178
  • C++ RSS
May 24th, 2007
0

help in Makefile pls...

Expand Post »
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...
Similar Threads
Reputation Points: 7
Solved Threads: 1
Junior Poster in Training
squinx22 is offline Offline
68 posts
since Mar 2007
May 24th, 2007
0

Re: help in Makefile pls...

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.
Reputation Points: 254
Solved Threads: 74
Practically a Posting Shark
thekashyap is offline Offline
804 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: abOUt VMWare..??
Next Thread in C++ Forum Timeline: Randomly Generated Network





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC