How to suppress an echo in a makefile?

I have the following PHONY target in a Makefile

install: 
        echo /usr/bin/shelldecrypt must be writable
        cp shelldecrypt /usr/bin

When I run the target, the command executed is displayed

prompt> make install

OUTPUT IS

    echo / usr / bin / shelldecrypt must be writable 
    / usr / bin / shelldecrypt must be writable
    cp shelldecrypt / usr / bin

EXIT HOW I WANT IT

    / usr / bin / shelldecrypt must be writable
    cp shelldecrypt / usr / bin

+3
source share
1 answer

you could add "@" in front of your team to hold back this echo

install: 
        @echo /usr/bin/shelldecrypt must be writable
        cp shelldecrypt /usr/bin
+7
source

Source: https://habr.com/ru/post/1708394/


All Articles