diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-07 12:14:13 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-07 12:14:13 +0200 |
commit | 492f54d4e2fb3e80bc82ef2deeaa37e8293bf1d5 (patch) | |
tree | 2fb6b850ebccd0ee256a773f801b38b06e7ac930 /Makefile | |
parent | workflows/jekyll: use .ruby-version for setup-ruby action (diff) | |
download | wireguard-config-492f54d4e2fb3e80bc82ef2deeaa37e8293bf1d5.tar.gz wireguard-config-492f54d4e2fb3e80bc82ef2deeaa37e8293bf1d5.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-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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/ |