This commit is contained in:
Madison Scott-Clary
2017-09-06 13:40:03 -06:00
parent a814cdf0ab
commit 2add453e73
9 changed files with 129 additions and 24 deletions

25
Makefile Normal file
View 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