Commit aeb261ea authored by Jonathan Klamroth's avatar Jonathan Klamroth 🏍
Browse files

add wordcount make target

parent 27c51ec2
...@@ -30,6 +30,11 @@ livepreview: prepare ...@@ -30,6 +30,11 @@ livepreview: prepare
cd $(BUILD_DIR) && latexmk $(LATEXMK_OPTIONS) -pdf -pvc $(TARGET).tex cd $(BUILD_DIR) && latexmk $(LATEXMK_OPTIONS) -pdf -pvc $(TARGET).tex
.PHONY: wordcount
total=0 ; for f in chapters/*.tex ; do count=`detex -l "$$f" | wc -w` ; total=`expr "$$total" + "$$count"` ; echo "$$f: $$count" ; done ; echo "total: $$total"
.PHONY: clean .PHONY: clean
clean: clean:
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment