Skip to content

Commit 1c6e81f

Browse files
committed
Update Makefile
1 parent 5e54e4f commit 1c6e81f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,16 @@ serve:
110110
.PHONY: progress
111111
progress:
112112
@$(PYTHON) -c 'import sys; print("{:.1%}".format(int(sys.argv[1]) / int(sys.argv[2])))' \
113-
$(shell msgcat *.po */*.po | msgattrib --translated | grep -c '^msgid') \
114-
$(shell msgcat *.po */*.po | grep -c '^msgid')
113+
@echo "File: "; \
114+
read FILE; \
115+
ifeq ($$(FILE), "")
116+
@echo "No file specified, showing total progress"; \
117+
$(shell msgcat *.po */*.po | msgattrib --translated | grep -c '^msgid') \
118+
$(shell msgcat *.po */*.po | grep -c '^msgid')
119+
120+
else
121+
$(shell msgcat $$(FILE) | msgattrib --translated | grep -c '^msgid') \
122+
$(shell msgcat $$(FILE) | grep -c '^msgid')
115123

116124

117125
.PHONY: todo

0 commit comments

Comments
 (0)