2009-05-15 8 views
3

J'ai la cible PHONY suivante dans MakefileComment supprimer les échos dans le fichier makefile?

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

Quand je lance la cible affiche la commande qu'il exécute

prompt> make install

SORTIE EST

 

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

SORTIE COMME JE SOUHAITE IT

 

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

Répondre

7

vous pouvez ajouter "@" avant votre commande pour surpress qui font écho à

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

Merci beaucoup. – ojblass

Questions connexes