Add make targets for serving docs locally

This commit is contained in:
Joel Speed
2019-05-10 12:07:16 +01:00
parent f262ec84d5
commit 16734dbee8
3 changed files with 32 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
.PHONY: ruby
ruby:
@ if [ ! $$(which ruby) ]; then \
echo "Please install ruby version 2.1.0 or higher"; \
fi
.PHONY: bundle
bundle: ruby
@ if [ ! $$(which bundle) ]; then \
echo "Please install bundle: `gem install bundler`"; \
fi
vendor/bundle: bundle
bundle install --path vendor/bundle
.PHONY: serve
serve: vendor/bundle
bundle exec jekyll serve