aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 11:15:42 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 11:15:44 +0200
commit41ea239fed12164fd961326e826270b18f731936 (patch)
tree1abdc6892280397d6a5a425696eaf28bbdb9aca5 /Makefile
parentworkflows/jekyll: use .ruby-version for setup-ruby action (diff)
downloadblog-41ea239fed12164fd961326e826270b18f731936.tar.gz
blog-41ea239fed12164fd961326e826270b18f731936.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 fc4eb0e..97c3b9c 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/blog/