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