1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 07:18:29 +01:00
tldr/Makefile
2015-12-25 12:11:51 +02:00

27 lines
522 B
Makefile

default: lint
all: setup index
index:
@echo "WARNING!"
@echo "Index rebuilding is deprecated."
@echo "You should not do it, unless you understand why you doing this."
@echo
@TLDRHOME=`pwd` ./scripts/build_index.rb
@echo "Index rebuilt."
setup: hooks deps
hooks:
@cp ./scripts/pre-commit .git/hooks
@chmod +x .git/hooks/pre-commit
@echo "Git pre-commit hook installed."
deps:
@bundle
@echo "OK"
lint:
@bundle exec mdl --style ./scripts/markdown-style.rb pages
.PHONY: default index setup hooks deps lint