aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 11:03:48 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 11:03:48 +0200
commit03574131f5fa1e3a789f35959c4cfaeef88e0e32 (patch)
treed36932d4187b39e5c6d078a407cb901300f1cc47 /Makefile
parentworkflow/ci: use .ruby-version for setup-ruby action (diff)
downloadegor-tensin.github.io-03574131f5fa1e3a789f35959c4cfaeef88e0e32.tar.gz
egor-tensin.github.io-03574131f5fa1e3a789f35959c4cfaeef88e0e32.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 4a3572f..132d8ca 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/
SKIP := -R cv.pdf -X /blog,/jekyll-theme,/sorting-algorithms,/status,/void,/wireguard-config