From c7b838809322895c87dab8987543b139c2cf3849 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 1 Jul 2023 10:08:24 +0200 Subject: Enable make to rebuild site on input changes --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2b83f82..e9c0c4a 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,10 @@ brotli := brotli --force gzip := gzip --best --keep --force zstd := zstd --force --no-pass-through -19 --quiet -build: $(PREFIX) +build: $(PREFIX)/index.html -$(PREFIX): - zola build --output-dir $(PREFIX) +$(PREFIX)/index.html: config.toml content/**.md static/** templates/** themes/**/* + zola build --force --output-dir $(PREFIX) format: $(PREFIX) prettier --write --parser html --print-width 200 "$(PREFIX)/**/*.html" -- cgit 1.4.1