diff --git a/Makefile b/Makefile index 967a4c9..0436ec9 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,16 @@ +BUNDLE := $(if $(shell command -v bundle2.7),bundle2.7,bundle) export BUNDLE_PATH ?= $(CURDIR)/.bundle/gems .PHONY: build build: .bundle/.done - bundle exec jekyll build --drafts + $(BUNDLE) exec jekyll build --drafts .PHONY: serve serve: .bundle/.done - bundle exec jekyll serve --drafts --livereload + $(BUNDLE) exec jekyll serve --drafts --livereload .bundle/.done: Gemfile - bundle install + $(BUNDLE) install touch $@ .PHONY: clean