From 492f54d4e2fb3e80bc82ef2deeaa37e8293bf1d5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 7 Jun 2023 12:14:13 +0200 Subject: fix make wget w/ live reload A newer version of Jekyll breaks wget with --livereload and --convert-links. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f7b8947..11df7c8 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 @@ -46,7 +49,11 @@ build: .PHONY: serve serve: +ifeq ($(LIVE_RELOAD),1) + $(jekyll) serve --livereload +else $(jekyll) serve +endif URL := http://localhost:4000/wireguard-config/ -- cgit v1.2.3