aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 10:56:02 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 10:56:27 +0200
commit4ccad582f01cbfe19956fc6bfe589e599e7e85d3 (patch)
tree4b4778c95aea3f3bcb8bc7973113d68697d92df6 /Makefile
parentupgrade to Jekyll 4 (diff)
downloadjekyll-theme-4ccad582f01cbfe19956fc6bfe589e599e7e85d3.tar.gz
jekyll-theme-4ccad582f01cbfe19956fc6bfe589e599e7e85d3.zip
fix make wget w/ live reload
A newer version of Jekyll breaks wget with --livereload and --convert-links.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2f0527c..1ca1f6e 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ ifeq ($$(origin $(1)),command line)
endif
endef
+LIVE_RELOAD ?= 1
+$(eval $(call noexpand,LIVE_RELOAD))
+
.PHONY: all
all: serve
@@ -39,7 +42,11 @@ build:
.PHONY: serve
serve:
+ifeq ($(LIVE_RELOAD),1)
+ $(jekyll) serve --livereload
+else
$(jekyll) serve
+endif
URL := http://localhost:4000/jekyll-theme/