2015-05-06 17:31:58 +03:00
|
|
|
all: setup index
|
|
|
|
|
2015-03-02 21:21:27 +03:00
|
|
|
index:
|
2015-03-05 03:10:08 +03:00
|
|
|
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
2015-03-02 21:21:27 +03:00
|
|
|
@echo "Index rebuilt."
|
2015-04-09 14:19:48 +03:00
|
|
|
|
2015-05-06 17:31:58 +03:00
|
|
|
setup: hooks deps
|
|
|
|
|
|
|
|
hooks:
|
2015-04-09 14:19:48 +03:00
|
|
|
@cp ./scripts/pre-commit .git/hooks
|
|
|
|
@chmod +x .git/hooks/pre-commit
|
|
|
|
@echo "Git pre-commit hook installed."
|
2015-05-06 17:31:58 +03:00
|
|
|
|
|
|
|
deps:
|
|
|
|
@bundle
|
|
|
|
@echo "OK"
|
2015-04-14 17:22:21 +03:00
|
|
|
|
2015-05-06 17:31:58 +03:00
|
|
|
lint:
|
2015-04-14 23:15:00 +03:00
|
|
|
@GEM_PATH=.gem find pages -exec .gem/bin/mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
|
|
|
|
|
|
|
|
lint-changed:
|
|
|
|
@./scripts/lint-changed.sh
|
2015-05-06 17:31:58 +03:00
|
|
|
|
|
|
|
.PHONY: index setup hooks deps lint lint-changed
|