diff options
author | Alan Pearce | 2023-07-01 10:08:24 +0200 |
---|---|---|
committer | Alan Pearce | 2023-07-01 10:08:24 +0200 |
commit | c7b838809322895c87dab8987543b139c2cf3849 (patch) | |
tree | 2a440cdf052eec34a77e022c1726fe4c15b6d43f /Makefile | |
parent | 81f06727b23d4bff79d5c331d3257fcf1b505c61 (diff) | |
download | website-c7b838809322895c87dab8987543b139c2cf3849.tar.lz website-c7b838809322895c87dab8987543b139c2cf3849.tar.zst website-c7b838809322895c87dab8987543b139c2cf3849.zip |
Enable make to rebuild site on input changes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
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" |