aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/makefile b/makefile
index ddbddcd..b5f594d 100644
--- a/makefile
+++ b/makefile
@@ -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)
+