2015-12-06 19:36:44 +03:00
|
|
|
default: lint
|
2015-12-04 17:54:05 +03:00
|
|
|
|
2015-03-02 21:21:27 +03:00
|
|
|
index:
|
2015-12-25 13:11:51 +03: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 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-12-30 01:08:41 +03:00
|
|
|
setup: prerequisites hooks deps
|
|
|
|
|
|
|
|
prerequisites:
|
|
|
|
@echo
|
|
|
|
@echo "IMPORTANT!"
|
|
|
|
@echo "Before setting up hooks, make sure you have read Contributing Guidelines"
|
|
|
|
@echo "https://github.com/tldr-pages/tldr/blob/master/CONTRIBUTING.md#submitting-a-pull-request"
|
|
|
|
@echo
|
|
|
|
@echo "TL;DR:"
|
|
|
|
@echo "1. Install Ruby suitable for your system"
|
|
|
|
@echo "2. Run 'gem install bundler'"
|
|
|
|
@echo
|
2015-05-06 17:31:58 +03:00
|
|
|
|
|
|
|
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-12-04 17:54:05 +03:00
|
|
|
|
2015-05-06 17:31:58 +03:00
|
|
|
lint:
|
2015-12-06 19:36:44 +03:00
|
|
|
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
2015-12-04 17:54:05 +03:00
|
|
|
|
2015-12-30 01:08:41 +03:00
|
|
|
.PHONY: default index setup prerequisites hooks deps lint
|