about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorAlan Pearce2023-05-22 13:52:02 +0200
committerAlan Pearce2023-05-22 13:52:02 +0200
commit99675939680decde3b020246bfbf8c430e515d0f (patch)
treeac038ae76574bbbfdae6aa08251fbdc49af1bfb7 /Makefile
parent39d0a7949e306f3979f600f153721c9d27777abd (diff)
downloadwebsite-99675939680decde3b020246bfbf8c430e515d0f.tar.lz
website-99675939680decde3b020246bfbf8c430e515d0f.tar.zst
website-99675939680decde3b020246bfbf8c430e515d0f.zip
Add `clean` make target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8a23811..d1f81b3 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,9 @@ zstd := zstd --force --no-pass-through -19 --quiet
 build:
 	zola build --output-dir $(PREFIX)
 
+clean:
+	rm -rf ./$(PREFIX)
+
 to_compress := $(shell fd . $(PREFIX) --type=file -e html -e xml -e txt -e asc)
 brotli_files := $(patsubst %, %.br, $(to_compress))
 gzip_files := $(patsubst %, %.gz, $(to_compress))
@@ -59,4 +62,4 @@ install: compress
 deploy: build compress
 	rsync --archive --delete public/ pappel.alanpearce.eu:/srv/http/alanpearce.eu
 
-.PHONY: all build compress install deploy
+.PHONY: all clean build compress install deploy