aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 12:05:26 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 12:05:28 +0200
commit36a46ad6fe335f4f95a04f887514ea3924691876 (patch)
tree37e22e99b2cc90c2aff7c16d243180f4c61680ea /Makefile
parentworkflows/jekyll: use .ruby-version for setup-ruby action (diff)
downloadsorting-algorithms-36a46ad6fe335f4f95a04f887514ea3924691876.tar.gz
sorting-algorithms-36a46ad6fe335f4f95a04f887514ea3924691876.zip
fix make wget w/ live reload
A newer version of Jekyll breaks wget with --livereload and --convert-links.
Diffstat (limited to '')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f460632..6604f95 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/sorting-algorithms/