about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile10
2 files changed, 8 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 4153053..7753449 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
 /public
 /.deploystamp
 /.formatstamp
+/.compressstamp
 .direnv
 /result
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