mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-28 19:32:50 +03:00
739dd80cf6
Now setup calls the deps rule that takes care of bundling RubyGem dependencies loudly.
25 lines
451 B
Makefile
25 lines
451 B
Makefile
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:
|
|
@GEM_PATH=.gem find pages -exec .gem/bin/mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
|
|
|
|
lint-changed:
|
|
@./scripts/lint-changed.sh
|
|
|
|
.PHONY: index setup hooks deps lint lint-changed
|