1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 15:17:58 +01:00
tldr/Makefile
2015-12-07 03:51:40 +02:00

26 lines
439 B
Makefile

default: lint
all: setup index
index:
@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
lint-changed:
@./scripts/lint-changed.sh
.PHONY: default index setup hooks deps lint lint-changed