English 中文(简体)
援引的指挥权
原标题:Log invoked commands of make
  • 时间:2010-03-10 08:58:20
  •  标签:
  • makefile

是否有办法记录指挥,援引汇编方案? 我知道以下参数:<代码>-n和-p,但它们要么在条件上没有解决,而只是打印。 或者,当有人要求将自己列入《马克案》时,他们不工作。

最佳回答
问题回答

......

make SHELL="sh -x -e"

将造成弹壳(用来评估壳构造)的印刷信息,让你看看,对军舰中的任何条件如何进行评价。

<代码>-e是必要的,以确保适当发现<代码>中的错误,并将退回非零处理代码。

页: 1 电话:strace

strace -f -e execve make ...

写给它所执行的每个指挥机关,以便

make 2>&1 | tee build.log

将产生一个名为<代码>build.log的标志文件,作为副作用,其中包含给屏幕的同样内容。 (man tee for more details.)

<代码>2>&1将标准产出和错误合并为一流。 如果你没有这样做的话,定期产出就会进入记录档案,但错误只能去到 con。 (make,在指挥人员返回错误代码时,仅写上字。)

如果你想要完全抑制有利于伐木的产量,则更简单:

make 2>&1 > build.log

由于这些只是捕获了青.素产品,它们只用回收make进行罚款。

你们是否尝试了——d 参数(de)?

请注意,你可以控制胎儿的数量——而不是————de。 比如,——————————或————————————————————————————————————





相关问题
makefile: how to show line numbers for debugging?

Is there a way to have make display the line number where it declares an error? The -d switch doesn t seem to cut it. Updated: Example output: Reaping winning child 0x08aa8648 PID 9381 /bin/sh: ...

What is the reasoning behind the Makefile whitespace syntax?

I m revisiting Python after Michael Sparks s excellent walk through of Peter Norvig s Python spell checker at the SO DevDay in London. One of the points he highlighted was how clean Python is to look ...

Debugging GNU make

Is there a command line way in make to find out which of the prerequisites of a target is not updated?

How to add an all rule to this Makefile?

I want to just type make all and have the following Makefile do everything it s supposed to do: LEX = lex YACC = yacc CC = gcc calcu: y.tab.o lex.yy.o $(CC) -o calcu y.tab.o lex.yy.o -ly -lfl ...

How to discover number of *logical* cores on Mac OS X?

How can you tell, from the command line, how many cores are on the machine when you re running Mac OS X? On Linux, I use: x=$(awk /^processor/ {++n} END {print n+1} /proc/cpuinfo) It s not ...

Using extern in C doesn t work as expected

I have created two files: tunables.h #ifndef TUNABLES_H #define TUNABLES_H void tunables_load_conservative(); void tunables_load_aggressive(); extern int timer_x; #endif /*TUNABLES_H */ and ...

热门标签