Add prerequisites task to Makefile which warns about installation of Ruby and bundler
This commit is contained in:
17
Makefile
17
Makefile
@@ -1,7 +1,5 @@
|
|||||||
default: lint
|
default: lint
|
||||||
|
|
||||||
all: setup index
|
|
||||||
|
|
||||||
index:
|
index:
|
||||||
@echo "WARNING!"
|
@echo "WARNING!"
|
||||||
@echo "Index rebuilding is deprecated."
|
@echo "Index rebuilding is deprecated."
|
||||||
@@ -10,7 +8,18 @@ index:
|
|||||||
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
||||||
@echo "Index rebuilt."
|
@echo "Index rebuilt."
|
||||||
|
|
||||||
setup: hooks deps
|
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
|
||||||
|
|
||||||
hooks:
|
hooks:
|
||||||
@cp ./scripts/pre-commit .git/hooks
|
@cp ./scripts/pre-commit .git/hooks
|
||||||
@@ -24,4 +33,4 @@ deps:
|
|||||||
lint:
|
lint:
|
||||||
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
||||||
|
|
||||||
.PHONY: default index setup hooks deps lint
|
.PHONY: default index setup prerequisites hooks deps lint
|
||||||
|
Reference in New Issue
Block a user