Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make[1]: Entering directory error message

Tags:

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");     } } 
like image 596
noobler Avatar asked Apr 01 '12 19:04

noobler


1 Answers

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

like image 137
manav m-n Avatar answered Oct 19 '22 07:10

manav m-n