Pregunta

Tengo el siguiente objetivo PHONY en Makefile

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

Cuando ejecuto el objetivo que muestra el comando que se está ejecutando

prompt> make install

se emite

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

SALIDA como me gustaría TI

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

¿Fue útil?

Solución

se podría añadir "@" antes de su comando para suprimir ese eco

install: 
        @echo /usr/bin/shelldecrypt must be writable
        cp shelldecrypt /usr/bin
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top