Counts
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
.PHONY: run
|
||||
run:
|
||||
bundle exec jekyll build
|
||||
$(MAKE) -j2 run-jekyll watch-wordcounts
|
||||
|
||||
.PHONY: run-jekyll
|
||||
run-jekyll:
|
||||
bundle exec jekyll serve -w -I -H 0.0.0.0
|
||||
|
||||
.PHONY: watch-wordcounts
|
||||
watch-wordcounts:
|
||||
while true; do \
|
||||
for i in `find _posts -name "*.md"`; do \
|
||||
if [ -n "`git status --porcelain $$i`" ]; then \
|
||||
echo; \
|
||||
prose-wc -u $$i; \
|
||||
echo; \
|
||||
sleep 30; \
|
||||
fi; \
|
||||
done; \
|
||||
done
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf _site
|
||||
Reference in New Issue
Block a user