Skip to content

Commit

Permalink
Makefile: actually use ANSI escape sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Jan 8, 2024
1 parent 892aa6d commit df34568
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ CMD_COUNT_PAGES = pdfinfo $(DOC_PDF) | awk '/^Pages:/ {print $$2}'
CMD_COUNT_WORDS = pdftotext $(DOC_PDF) $(DOC_PDF:.pdf=.pdf.txt) && cat $(DOC_PDF:.pdf=.pdf.txt) | grep -E '^\.+\ *$$' -v | wc -w

stats: pdf
$(QUIET)echo "\e[1mThesis Stats:\e[0m"
$(QUIET)echo " \e[1mdetexed sources and removed empty lines:\e[0m"
$(QUIET)echo -e "\e[1mThesis Stats:\e[0m"
$(QUIET)echo -e " \e[1mdetexed sources and removed empty lines:\e[0m"
$(QUIET)echo " lines: $(shell detex $(DOC_TEX_ALL_SORTED) | sed '/^$$/d' | wc -l)"
$(QUIET)echo " words: $(shell detex $(DOC_TEX_ALL_SORTED) | sed '/^$$/d' | wc -w)"
$(QUIET)echo " characters: $(shell detex $(DOC_TEX_ALL_SORTED) | sed '/^$$/d' | wc --chars)"
Expand All @@ -90,6 +90,6 @@ stats: pdf
$(QUIET)echo " version might contain additional words, such as 'in Figure 3.5 on the"
$(QUIET)echo " next page' or the bibliography."
$(QUIET)echo
$(QUIET)echo " \e[1mCompiled PDF:\e[0m"
$(QUIET)echo -e " \e[1mCompiled PDF:\e[0m"
$(QUIET)echo " pages: $(shell $(CMD_COUNT_PAGES)) (in total)"
$(QUIET)echo " words: $(shell $(CMD_COUNT_WORDS)) (roughly)"

0 comments on commit df34568

Please sign in to comment.