相关疑难解决方法(0)

Make/makefile进度指示!

看看这个makefile,它有一些原始的进度指示(可能是一个进度条).

请给我建议/意见!



# BUILD is initially undefined
ifndef BUILD

# max equals 256 x's
sixteen := x x x x x x x x x x x x x x x x
MAX := $(foreach x,$(sixteen),$(sixteen))

# T estimates how many targets we are building by replacing BUILD with a special string
T := $(shell $(MAKE) -nrRf $(firstword $(MAKEFILE_LIST)) $(MAKECMDGOALS) \
            BUILD="COUNTTHIS" | grep -c "COUNTTHIS")

# N is the number of pending targets in base 1, well in fact, …

build-automation scripting makefile progress-bar

25
推荐指数
4
解决办法
1万
查看次数