我有一个简单的Makefile:使[1]:进入目录错误消息
default:
@make build
@make run
build:
@javac Test.java > /dev/null
run:
@java Test
在编译期间,使输出:
make[1]: Entering directory `<current directory'>
...
make[1]: Leaving directory `<current directory'>
我需要使建立不打印这些消息。有人知道问题或如何抑制这些消息吗?
感谢
编辑:发生这种情况无论代码。例如它发生与:
class Test {
public static void main(String[] args) {
System.out.println("HELLO WORLD");
}
}
什么是你的代码运行
make
?我们猜不到...... – Neal 2012-04-01 19:15:20为什么要用make编译Java? (我猜“因为教官这样说”虽然)。 – millimoose 2012-04-01 19:16:09
@尼尔抱歉,编辑包含代码片段。和Inerdial,我们使用make,因为语言的选择取决于我们。导师只需要调用我们所有不同的程序的统一方式。 – noobler 2012-04-01 19:34:04