aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-25 19:28:45 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-25 19:28:45 +0100
commit5fa6e3c076a9491953053922b6003de5ffd92423 (patch)
tree8b5a26bb424e6434efa92316161587a80bd7f817 /makefile
parent9f966f0e14408af9138f1b092a36d54419dae682 (diff)
enable incremental builds
Diffstat (limited to 'makefile')
-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