2015-12-06 17:36:44 +01:00
|
|
|
default: lint
|
2015-12-04 15:54:05 +01:00
|
|
|
|
2015-05-06 16:31:58 +02:00
|
|
|
all: setup index
|
|
|
|
|
2015-03-02 19:21:27 +01:00
|
|
|
index:
|
2015-12-25 11:11:51 +01:00
|
|
|
@echo "WARNING!"
|
|
|
|
@echo "Index rebuilding is deprecated."
|
|
|
|
@echo "You should not do it, unless you understand why you doing this."
|
|
|
|
@echo
|
2015-03-05 01:10:08 +01:00
|
|
|
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
2015-03-02 19:21:27 +01:00
|
|
|
@echo "Index rebuilt."
|
2015-04-09 13:19:48 +02:00
|
|
|
|
2015-05-06 16:31:58 +02: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 16:31:58 +02:00
|
|
|
|
|
|
|
deps:
|
|
|
|
@bundle
|
|
|
|
@echo "OK"
|
2015-12-04 15:54:05 +01:00
|
|
|
|
2015-05-06 16:31:58 +02:00
|
|
|
lint:
|
2015-12-06 17:36:44 +01:00
|
|
|
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
2015-12-04 15:54:05 +01:00
|
|
|
|
2015-12-07 03:01:44 +01:00
|
|
|
.PHONY: default index setup hooks deps lint
|