1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 11:17:59 +01:00
tldr/Makefile

24 lines
383 B
Makefile
Raw Normal View History

2015-12-06 17:36:44 +01:00
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:
2015-12-06 17:36:44 +01:00
@bundle exec mdl --style ./scripts/markdown-style.rb pages
.PHONY: default index setup hooks deps lint