From f9ea473fbdb7d0a82d1121b30b9ac7ca5509c32b Mon Sep 17 00:00:00 2001 From: Daniel Rosel Date: Fri, 19 Dec 2025 13:07:03 +0100 Subject: [PATCH] feature: added wordcounter --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f41a750..7cdbdc3 100644 --- a/Makefile +++ b/Makefile @@ -54,4 +54,14 @@ count-lines: @find . \( -path '*/node_modules' -o -path '*/.venv' -o -path '*/venv' \) -prune -o \ \( -name "*.ts" -o -name "*.py" \) -type f -print0 | xargs -0 cat | wc -l -.PHONY: all pdf clean watch run.webapp install test +wordcount: + @echo "Counting words in main text (excluding appendix)..." + @texcount -nosub -total -sum -1 \ + $(SRCDIR)/chapters/01-intro.tex \ + $(SRCDIR)/chapters/02-literature-review.tex \ + $(SRCDIR)/chapters/03-methodology.tex \ + $(SRCDIR)/chapters/04-results.tex \ + $(SRCDIR)/chapters/05-discussion.tex \ + $(SRCDIR)/chapters/06-conclusion.tex + +.PHONY: all pdf clean watch run.webapp install test wordcount