diff options
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/Makefile b/docs/Makefile index e332f0006..9dae0e45a 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -6,13 +6,22 @@ export PATH := $(BIN):$(PATH) default: @echo "Please specify a target: build, serve or dist" >&2 -build: +build: .ruby-bundle rm -rf _site bundle exec jekyll build -serve: +serve: .ruby-bundle ./_scripts/serve.sh +.ruby-bundle: Gemfile Gemfile.lock + @if ! (command -v bundle >/dev/null && command -v jekyll >/dev/null); then \ + echo "Please install Ruby bundle and jekyll: gem install bundler jekyll" >&2; \ + exit 1; \ + fi + bundle update + bundle install + touch .ruby-bundle + # ----------------------------------------------------------------------- dist: fonts info |