aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-23 15:30:01 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-23 15:30:01 -0500
commitb6366896db2c42ad5db92c16ea669bc0653f4878 (patch)
tree93ae23b225f965d3caff531e1938abac36a88503
parent4771d6394d84eefaa45b661c1af8e20ac092a225 (diff)
Fix makefile after merge
-rw-r--r--Makefile14
1 files changed, 2 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 3bd9179f..a2d3480f 100644
--- a/Makefile
+++ b/Makefile
@@ -18,24 +18,14 @@ else
include config.mk
# Modified progress counter based on: https://stackoverflow.com/a/35320895
-# Only run counter if we're actually building (not for phony targets or no-ops)
ifndef NO_PROGRESS
ifndef ECHO
-# Only count if building actual files, not just checking
-ifneq ($(filter build all,$(MAKECMDGOALS)),)
-T := $(shell $(MAKE) ECHO="COUNTTHIS" $(filter-out check-c-compiler check-libs,$(MAKECMDGOALS)) --no-print-directory \
- -nq 2>/dev/null | grep -c "COUNTTHIS")
-ifeq ($(T),0)
-ECHO = echo
-else
+T := $(shell $(MAKE) ECHO="COUNTTHIS" $(MAKECMDGOALS) --no-print-directory \
+ -n | grep -c "COUNTTHIS")
N := x
C = $(words $N)$(eval N := x $N)
ECHO = echo -e "[`expr $C '*' 100 / $T`%]"
endif
-else
-ECHO = echo
-endif
-endif
endif
ifndef ECHO
ECHO = echo