I have a simple Makefile:
default:     @make build     @make run  build:     @javac Test.java > /dev/null  run:     @java Test   During compilation, make outputs:
make[1]: Entering directory `<current directory'> ... make[1]: Leaving directory `<current directory'>   I need make to build without printing these messages. Does anybody know what the problem or how to suppress these messages?
Thanks
edit: this happens regardless of the code. e.g. it happens with:
class Test {      public static void main(String[] args) {         System.out.println("HELLO WORLD");     } } 
                make -s suppresses other makefile messages also which might be important for developers. If you want to suppress "Entering/Leaving directory messages" only run make with
make --no-print-directory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With