From 92b5accb90bd579e2857d6666c1ba735442618d3 Mon Sep 17 00:00:00 2001 From: David Given Date: Wed, 16 Oct 2024 22:37:47 +0200 Subject: [PATCH] Tidy rule count. --- build/ab.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/ab.mk b/build/ab.mk index 81057a83..7dae06d7 100644 --- a/build/ab.mk +++ b/build/ab.mk @@ -48,7 +48,7 @@ endif EXT ?= ifeq ($(PROGRESSINFO),) -rulecount := $(shell $(MAKE) --no-print-directory -q $(OBJ)/build.mk PROGRESSINFO=1 && $(MAKE) -n $(MAKECMDGOALS) PROGRESSINFO=XXXPROGRESSINFOXXX | grep XXXPROGRESSINFOXXX | wc -l) +rulecount := $(strip $(shell $(MAKE) --no-print-directory -q $(OBJ)/build.mk PROGRESSINFO=1 && $(MAKE) --no-print-directory -n $(MAKECMDGOALS) PROGRESSINFO=XXXPROGRESSINFOXXX | grep XXXPROGRESSINFOXXX | wc -l)) ruleindex := 1 PROGRESSINFO = "[$(ruleindex)/$(rulecount)]$(eval ruleindex := $(shell expr $(ruleindex) + 1))" endif