Skip to content

Commit

Permalink
'make wc' target for a wordcount of each chapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
drothlis committed Apr 11, 2012
1 parent 74c146e commit 00976c4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ clean:
rm -f *.html
.PHONY: clean

wc: basic_c.haml
wc: $(chapters_haml)
@for f in $^; do \
printf "%25s" $$f; \
sed -Ee '/^ *(\.figure|\.window|\.modeline|\.echoarea)/,/^$$/ d' \
$$f | wc; \
done; \
printf "%25s" ""; \
sed -Ee '/^ *(\.figure|\.window|\.modeline|\.echoarea)/,/^$$/ d' \
$^ | wc
.PHONY: wc
Expand Down

0 comments on commit 00976c4

Please sign in to comment.