इस मेकफ़ाइल को देखें, इसमें कुछ प्रकार की आदिम प्रगति संकेत है (प्रगति पट्टी हो सकती थी)।प्रगति संकेत बनाओ/मेकफ़ाइल करें!
कृपया मुझे सुझाव/टिप्पणियां दें!
# 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, base x :-) N := $(wordlist 1,$T,$(MAX)) # auto-decrementing counter that returns the number of pending targets in base 10 counter = $(words $N)$(eval N := $(wordlist 2,$(words $N),$N)) # BUILD is now defined to show the progress, this also avoids redefining T in loop BUILD = @echo $(counter) of $(T) endif # dummy phony targets .PHONY: all clean all: target @echo done clean: @rm -f target *.c # dummy build rules target: a.c b.c c.c d.c e.c f.c g.c @touch [email protected] $(BUILD) %.c: @touch [email protected] $(BUILD)
सभी सुझावों का स्वागत!
प्यारा चाल, लेकिन मैं इसे देखना नहीं देख सकता। –
मैं कर सकता हूँ। Gentoo पर यह अच्छा होगा। 'cmake' में अंतर्निहित काउंटर [फ़ाइल x/n फ़ाइलें] है। लेकिन हर कमांड लाइन के साथ स्क्रीन बाढ़ के बिना प्रगति पट्टी रखने का एक तरीका अच्छा होगा। – Evi1M4chine