diff options
author | Rasmus Andersson <rasmus@notion.se> | 2022-09-29 22:11:03 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2022-09-29 22:11:03 +0300 |
commit | 90100737144b62f954a0e387041a720492c2d307 (patch) | |
tree | 24c1c1dee7ee67e09fe91cd3fd141654a51664e9 /docs/Makefile | |
parent | edf45e80212f64e3f471bec475788233be25d78c (diff) | |
parent | 47f233286a30f5ce22bb113a3854c81cc971ce47 (diff) | |
download | inter-90100737144b62f954a0e387041a720492c2d307.tar.xz |
Merge branch 'pepelsbey-update-web-snippet'
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 |