makefile的调试

make有用的选项:

-d   Print debugging information in addition to normal processing.  The debugging information says which files are being considered for remaking,  which

            file-times  are  being  compared  and  with what results, which files actually need to be remade, which implicit rules are considered and which are

            applied---everything interesting about how make decides what to do.

--debug[=FLAGS]

            Print debugging information in addition to normal processing.  If the FLAGS are omitted, then the behavior is the same  as  if  -d  was  specified.

            FLAGS  may  be  a  for  all  debugging output (same as using -d), b for basic debugging, v for more verbose basic debugging, i for showing implicit

            rules, j for details on invocation of commands, and m for debugging while remaking makefiles.

-p, --print-data-base

            Print the data base (rules and variable values) that results from reading the makefiles; then execute as usual or  as  otherwise  specified.   This

            also  prints  the  version  information given by the -v switch (see below).  To print the data base without trying to remake any files, use make -p

            -f/dev/null.

-n, --just-print, --dry-run, --recon

            Print the commands that would be executed, but do not execute them.

--no-print-directory

            Turn off -w, even if it was turned on implicitly.

-q, --question

            ‘‘Question  mode’’.  Do not run any commands, or print anything; just return an exit status that is zero if the specified targets

            are already up to date, nonzero otherwise

-s, --silent, --quiet

            Silent operation; do not print the commands as they are executed. 

--warn-undefined-variables

            Warn when an undefined variable is referenced.   

make -n xxxx

如果嫌内容太多,可以过滤掉多余的信息:

make -n xxxx | grep “make -f”


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/hansel/archive/2011/02/12/6180524.aspx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值