diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -1,5 +1,20 @@ -build: - bundle exec jekyll build --quiet +JEKYLL_ENV ?= development +# JEKYLL_ENV ?= production + +WEBROOT ?= _site + +JEKYLL_BUILD_ARGS += --quiet +JEKYLL_BUILD_ARGS += --destination $(WEBROOT) + +# Gemfile.lock is used as a proxy for checking if the required gems are +# installed + +build: Gemfile.lock + bundle exec jekyll build $(JEKYLL_BUILD_ARGS) + +Gemfile.lock: Gemfile + bundle install --quiet clean: - $(RM) -r _site + $(RM) -r $(WEBROOT) + |