Makefile中加带时间戳的打印
来源:互联网 发布:find命令linux 编辑:程序博客网 时间:2024/05/20 16:00
#实现打印功能的规则#Define Debug String
_str_date = $(shell date --rfc-3339="ns") _str_debug = "[$(_str_date)] sim@debug--- "#Set Rules.PHONY: sim@debugsim@debug:@echo $(_str_debug)#使用说明#use-age:#add sim@debug to your Makefile .PHONY or PHONY += sim@debug#and set sim@debug to be dependency whitch you want debug target. #eg:all: sim@debug _ubootwhen make check target all, it will print sim@debug to terminatefor example:[2017-12-05 10:21:22.4343243+8.00] sim@debug--- KBUILD_DIR=/home/uboot-2014.07
#note: 建议把sim@debug作为第一个依赖,因为make检测依赖是从左往右进行,如果第一个依赖需要执行很多命令,sim@debug将会在这些命令打印完成后才能打印出。
例子:
阅读全文
0 0
- Makefile中加带时间戳的打印
- makefile 打印变量的值
- linux Makefile时间戳
- linux Makefile时间戳
- time_t时间的打印
- 打印时间戳方法
- makefile 在makefile中打印输出信息的方法是
- shell,makefile打印变量的不同
- linux打印时间的code
- hive打印hbase时间戳
- 打印时间
- 打印时间
- Makefile打印变量
- log4net的文件日志打印时间测试
- 用PHP打印出前一天的时间
- python 打印程序编译的时间
- javascript中打印当前的时间
- perl打印日志的时间格式
- 第十三周项目一
- Power+DC
- linux 64位系统 NetBeans 编译32位qt程序
- [IDEA]Maven创建web子模块并运行
- 欢迎使用CSDN-markdown编辑器
- Makefile中加带时间戳的打印
- Java中如何获取图片的长和宽
- 第三周 【项目2】 建设“顺序表”算法库
- AlphaZero炼成最强通用棋类AI,DeepMind强化学习算法8小时完爆人类棋类游戏
- 腾讯开源的Android UI框架——QMUI Android
- 写一个方法获取 url ?后面的参数,并将参数对象化。
- 第三周-项目四-顺序表应用
- HTML报表EXCEL输出
- linux进程通信2