summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-07-01 10:08:24 +0200
committerAlan Pearce2023-07-01 10:08:24 +0200
commitc7b838809322895c87dab8987543b139c2cf3849 (patch)
tree2a440cdf052eec34a77e022c1726fe4c15b6d43f
parent81f06727b23d4bff79d5c331d3257fcf1b505c61 (diff)
downloadwebsite-c7b838809322895c87dab8987543b139c2cf3849.tar.lz
website-c7b838809322895c87dab8987543b139c2cf3849.tar.zst
website-c7b838809322895c87dab8987543b139c2cf3849.zip
Enable make to rebuild site on input changes
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
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"