2015-05-06 15:31:58 +01:00
|
|
|
all: setup index
|
|
|
|
|
2015-03-02 18:21:27 +00:00
|
|
|
index:
|
2015-03-05 00:10:08 +00:00
|
|
|
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
2015-03-02 18:21:27 +00:00
|
|
|
@echo "Index rebuilt."
|
2015-04-09 12:19:48 +01:00
|
|
|
|
2015-05-06 15:31:58 +01:00
|
|
|
setup: hooks deps
|
|
|
|
|
|
|
|
hooks:
|
2015-04-09 12:19:48 +01:00
|
|
|
@cp ./scripts/pre-commit .git/hooks
|
|
|
|
@chmod +x .git/hooks/pre-commit
|
|
|
|
@echo "Git pre-commit hook installed."
|
2015-05-06 15:31:58 +01:00
|
|
|
|
|
|
|
deps:
|
|
|
|
@bundle
|
|
|
|
@echo "OK"
|
2015-04-14 15:22:21 +01:00
|
|
|
|
2015-05-06 15:31:58 +01:00
|
|
|
lint:
|
2015-04-14 21:15:00 +01: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 15:31:58 +01:00
|
|
|
|
|
|
|
.PHONY: index setup hooks deps lint lint-changed
|