Reputation: 21620
I have the following PHONY target in Makefile
install:
echo /usr/bin/shelldecrypt must be writable
cp shelldecrypt /usr/bin
When I run the target it displays the command it is executing
prompt> make install
OUTPUT IS
echo /usr/bin/shelldecrypt must be writable /usr/bin/shelldecrypt must be writable cp shelldecrypt /usr/bin
OUTPUT AS I WOULD LIKE IT
/usr/bin/shelldecrypt must be writable cp shelldecrypt /usr/bin
Upvotes: 3
Views: 552
Reputation: 7021
you could add "@" before your command to surpress that echo
install:
@echo /usr/bin/shelldecrypt must be writable
cp shelldecrypt /usr/bin
Upvotes: 7