aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/makefile b/makefile
index 053c267..b35abcd 100644
--- a/makefile
+++ b/makefile
@@ -8,6 +8,11 @@ WEBROOT ?= _site
JEKYLL_BUILD_ARGS += --quiet
JEKYLL_BUILD_ARGS += --destination $(WEBROOT)
+ifeq "development" "$(JEKYLL_ENV)"
+ifeq "" "$(findstring B,$(MAKEFLAGS))"
+JEKYLL_BUILD_ARGS += --incremental
+endif
+endif
# Gemfile.lock is used as a proxy for checking if the required gems are
# installed