diff options
author | Alan Pearce | 2023-07-09 15:08:56 +0200 |
---|---|---|
committer | Alan Pearce | 2023-07-09 15:08:56 +0200 |
commit | 05ba1a1e36136bf1febbea56ecb9662ed351899a (patch) | |
tree | 9ae8178b2eb03780e02929b2030de4d0cea6343b /Makefile | |
parent | f8a4c0497d145a597f6f7ec6f9bebc105fcd04f8 (diff) | |
download | website-05ba1a1e36136bf1febbea56ecb9662ed351899a.tar.lz website-05ba1a1e36136bf1febbea56ecb9662ed351899a.tar.zst website-05ba1a1e36136bf1febbea56ecb9662ed351899a.zip |
Make `make deploy` do nothing unless sources are updated
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile index 2db4b6a..f95bc49 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ format: .formatstamp clean: rm -rf ./$(PREFIX) + rm -rf ./.*stamp to_compress := $(shell fd . $(PREFIX) --type=file -e html -e xml -e txt -e asc) brotli_files := $(patsubst %, %.br, $(to_compress)) @@ -63,14 +64,17 @@ ${PREFIX}/%.txt.zst: ${PREFIX}/%.txt ${PREFIX}/%.asc.zst: ${PREFIX}/%.asc $(zstd) $< > $@ -compress: .formatstamp $(brotli_files) $(gzip_files) $(zstd_files) +compress: .compressstamp + +.compressstamp: .formatstamp $(brotli_files) $(gzip_files) $(zstd_files) + @touch .compressstamp install: compress deploy: .deploystamp -.deploystamp: build format compress +.deploystamp: .compressstamp Caddyfile redis.Caddyfile Dockerfile fly.toml fly deploy @touch .deploystamp -.PHONY: all clean build install deploy +.PHONY: all clean build format compress install deploy |